Class: Class

Inherits:
Object show all
Defined in:
lib/rcl/ext/yaml_helper.rb

Instance Method Summary collapse

Instance Method Details

#persistObject



5
6
7
8
# File 'lib/rcl/ext/yaml_helper.rb', line 5

def persist
  @persist = [] if !@persist
  @persist
end

#persist=(p) ⇒ Object



10
11
12
# File 'lib/rcl/ext/yaml_helper.rb', line 10

def persist= p
  @persist = p if p.kind_of?(Array)
end

#persist_with_parentObject



14
15
16
17
18
19
20
21
22
# File 'lib/rcl/ext/yaml_helper.rb', line 14

def persist_with_parent
  p = []
  klass = self;
  while klass
    p.concat(klass.persist)
    klass = klass.superclass
  end
  p.uniq
end