# File lib/core/facets/kernel/object_state.rb, line 49 49: def object_state(data=nil) 50: if data 51: data.each_pair {|k,v| send(k.to_s + "=", v)} 52: else 53: data = {} 54: each_pair{|k,v| data[k] = v} 55: data 56: end 57: end
# File lib/core/facets/kernel/object_state.rb, line 59 59: def replace(snap) 60: snap.each_pair {|k,v| send(k.to_s + "=", v)} 61: end
Returns a hash containing the names and values for all instance settings in the Struct.
# File lib/core/facets/to_hash.rb, line 325 325: def to_h 326: h = {} 327: each_pair{ |k,v| h[k] = v } 328: h 329: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.