Class: SiSU_AO_Persist::Persist

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

Constant Summary collapse

@@persistance =
nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = nil) ⇒ Persist

Returns a new instance of Persist.



59
60
61
62
63
64
65
66
67
68
69
# File 'lib/sisu/ao_persist.rb', line 59

def initialize(args=nil)
  @@persistance=args=(args ? args : (@@persistance || persist_init_hash_values))
  @fns=args[:fns]
  @ao_arr=args[:ao_arr]
  @idx_arr_sst=args[:idx_arr_sst]
  @idx_arr_tex=args[:idx_arr_tex]
  @idx_arr_html=args[:idx_arr_html]
  @idx_arr_xhtml=args[:idx_arr_xhtml]
  @map_arr_nametags=args[:map_arr_nametags]
  @map_arr_ocn_htmlseg=args[:map_arr_ocn_htmlseg]
end

Instance Attribute Details

#ao_arrObject

Returns the value of attribute ao_arr.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def ao_arr
  @ao_arr
end

#fnsObject

Returns the value of attribute fns.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def fns
  @fns
end

#idx_arr_htmlObject

Returns the value of attribute idx_arr_html.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def idx_arr_html
  @idx_arr_html
end

#idx_arr_sstObject

Returns the value of attribute idx_arr_sst.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def idx_arr_sst
  @idx_arr_sst
end

#idx_arr_texObject

Returns the value of attribute idx_arr_tex.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def idx_arr_tex
  @idx_arr_tex
end

#idx_arr_xhtmlObject

Returns the value of attribute idx_arr_xhtml.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def idx_arr_xhtml
  @idx_arr_xhtml
end

#map_arr_nametagsObject

Returns the value of attribute map_arr_nametags.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def map_arr_nametags
  @map_arr_nametags
end

#map_arr_ocn_htmlsegObject

Returns the value of attribute map_arr_ocn_htmlseg.



58
59
60
# File 'lib/sisu/ao_persist.rb', line 58

def map_arr_ocn_htmlseg
  @map_arr_ocn_htmlseg
end

Instance Method Details

#persist_initObject



106
107
108
109
# File 'lib/sisu/ao_persist.rb', line 106

def persist_init
  @@persistance=nil
  Persist.new(persist_init_hash_values)
end

#persist_init_hash_valuesObject



94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/sisu/ao_persist.rb', line 94

def persist_init_hash_values
  {
    fns:                 nil,
    ao_arr:              [],
    idx_arr_sst:         [],
    idx_arr_tex:         [],
    idx_arr_html:        [],
    idx_arr_xhtml:       [],
    map_arr_nametags:    [],
    map_arr_ocn_htmlseg: [],
  }
end