class SiSU_AO_Persist::PersistDocStructExt

Attributes

alt[RW]
block[RW]
box[RW]
code[RW]
group[RW]
lng[RW]
lng_is[RW]
lngsyn[RW]
ocn[RW]
poem[RW]
quote[RW]
table[RW]
table_to[RW]

Public Class Methods

new(args=nil) click to toggle source
# File lib/sisu/ao_persist.rb, line 114
def initialize(args=nil)
  @@persist=args=(args ? args : (@@persist || persist_init_hash_values))
  @ocn=args[:ocn]
  @lng=args[:lng]
  @lng_is=args[:lng_is]
  @code=args[:code]
  @lngsyn=args[:lngsyn]
  @poem=args[:poem]
  @block=args[:block]
  @box=args[:box]
  @group=args[:group]
  @alt=args[:alt]
  @quote=args[:quote]
  @table=args[:table]
  @table_to=args[:table_to]
end

Public Instance Methods

persist_init() click to toggle source
# File lib/sisu/ao_persist.rb, line 186
def persist_init
  @@persist=nil
  PersistDocStructExt.new(persist_init_hash_values)
end
persist_init_hash_values() click to toggle source
# File lib/sisu/ao_persist.rb, line 169
def persist_init_hash_values
  {
    ocn:         :on,
    lng:         :off,
    lng_is:      :doc_default,
    code:        :off,
    lngsyn:      :txt,
    poem:        :off,
    block:       :off,
    box:         :off,
    group:       :off,
    alt:         :off,
    quote:       :off,
    table:       :off,
    table_to:    :off,
  }
end