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.



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

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.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def ao_arr
  @ao_arr
end

#fnsObject

Returns the value of attribute fns.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def fns
  @fns
end

#idx_arr_htmlObject

Returns the value of attribute idx_arr_html.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def idx_arr_html
  @idx_arr_html
end

#idx_arr_sstObject

Returns the value of attribute idx_arr_sst.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def idx_arr_sst
  @idx_arr_sst
end

#idx_arr_texObject

Returns the value of attribute idx_arr_tex.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def idx_arr_tex
  @idx_arr_tex
end

#idx_arr_xhtmlObject

Returns the value of attribute idx_arr_xhtml.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def idx_arr_xhtml
  @idx_arr_xhtml
end

#map_arr_nametagsObject

Returns the value of attribute map_arr_nametags.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def map_arr_nametags
  @map_arr_nametags
end

#map_arr_ocn_htmlsegObject

Returns the value of attribute map_arr_ocn_htmlseg.



60
61
62
# File 'lib/sisu/ao_persist.rb', line 60

def map_arr_ocn_htmlseg
  @map_arr_ocn_htmlseg
end

Instance Method Details

#persist_initObject



108
109
110
111
# File 'lib/sisu/ao_persist.rb', line 108

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

#persist_init_hash_valuesObject



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

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