Class: SiSU_AO_Persist::PersistDocStructExt

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/ao_persist.rb

Constant Summary collapse

@@persist =
nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = nil) ⇒ PersistDocStructExt

Returns a new instance of PersistDocStructExt.



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/sisu/ao_persist.rb', line 116

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

Instance Attribute Details

#altObject

Returns the value of attribute alt.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def alt
  @alt
end

#blockObject

Returns the value of attribute block.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def block
  @block
end

#boxObject

Returns the value of attribute box.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def box
  @box
end

#codeObject

Returns the value of attribute code.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def code
  @code
end

#groupObject

Returns the value of attribute group.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def group
  @group
end

#lngObject

Returns the value of attribute lng.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def lng
  @lng
end

#lng_isObject

Returns the value of attribute lng_is.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def lng_is
  @lng_is
end

#lngsynObject

Returns the value of attribute lngsyn.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def lngsyn
  @lngsyn
end

#ocnObject

Returns the value of attribute ocn.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def ocn
  @ocn
end

#poemObject

Returns the value of attribute poem.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def poem
  @poem
end

#quoteObject

Returns the value of attribute quote.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def quote
  @quote
end

#tableObject

Returns the value of attribute table.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def table
  @table
end

#table_toObject

Returns the value of attribute table_to.



115
116
117
# File 'lib/sisu/ao_persist.rb', line 115

def table_to
  @table_to
end

Instance Method Details

#persist_initObject



188
189
190
191
# File 'lib/sisu/ao_persist.rb', line 188

def persist_init
  @@persist=nil
  PersistDocStructExt.new(persist_init_hash_values)
end

#persist_init_hash_valuesObject



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/sisu/ao_persist.rb', line 171

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