Class: SiSU_AO_Persist::PersistDocStructExt
- Inherits:
-
Object
- Object
- SiSU_AO_Persist::PersistDocStructExt
- Defined in:
- lib/sisu/ao_persist.rb
Constant Summary collapse
- @@persist =
nil
Instance Attribute Summary collapse
-
#alt ⇒ Object
Returns the value of attribute alt.
-
#block ⇒ Object
Returns the value of attribute block.
-
#box ⇒ Object
Returns the value of attribute box.
-
#code ⇒ Object
Returns the value of attribute code.
-
#group ⇒ Object
Returns the value of attribute group.
-
#lng ⇒ Object
Returns the value of attribute lng.
-
#lng_is ⇒ Object
Returns the value of attribute lng_is.
-
#lngsyn ⇒ Object
Returns the value of attribute lngsyn.
-
#ocn ⇒ Object
Returns the value of attribute ocn.
-
#poem ⇒ Object
Returns the value of attribute poem.
-
#quote ⇒ Object
Returns the value of attribute quote.
-
#table ⇒ Object
Returns the value of attribute table.
-
#table_to ⇒ Object
Returns the value of attribute table_to.
Instance Method Summary collapse
-
#initialize(args = nil) ⇒ PersistDocStructExt
constructor
A new instance of PersistDocStructExt.
- #persist_init ⇒ Object
- #persist_init_hash_values ⇒ Object
Constructor Details
#initialize(args = nil) ⇒ PersistDocStructExt
Returns a new instance of PersistDocStructExt.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# 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 |
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def alt @alt end |
#block ⇒ Object
Returns the value of attribute block.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def block @block end |
#box ⇒ Object
Returns the value of attribute box.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def box @box end |
#code ⇒ Object
Returns the value of attribute code.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def code @code end |
#group ⇒ Object
Returns the value of attribute group.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def group @group end |
#lng ⇒ Object
Returns the value of attribute lng.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def lng @lng end |
#lng_is ⇒ Object
Returns the value of attribute lng_is.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def lng_is @lng_is end |
#lngsyn ⇒ Object
Returns the value of attribute lngsyn.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def lngsyn @lngsyn end |
#ocn ⇒ Object
Returns the value of attribute ocn.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def ocn @ocn end |
#poem ⇒ Object
Returns the value of attribute poem.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def poem @poem end |
#quote ⇒ Object
Returns the value of attribute quote.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def quote @quote end |
#table ⇒ Object
Returns the value of attribute table.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def table @table end |
#table_to ⇒ Object
Returns the value of attribute table_to.
113 114 115 |
# File 'lib/sisu/ao_persist.rb', line 113 def table_to @table_to end |
Instance Method Details
#persist_init ⇒ Object
186 187 188 189 |
# File 'lib/sisu/ao_persist.rb', line 186 def persist_init @@persist=nil PersistDocStructExt.new(persist_init_hash_values) end |
#persist_init_hash_values ⇒ Object
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# 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 |