Parent

Struct

Public Instance Methods

attributes() click to toggle source

Returns a hash containing the names and values for all instance settings in the Struct.

This will eventually be deprecated in favor of #.

    # File lib/core/facets/struct/attributes.rb, line 8
 8:   def attributes
 9:     h = {}
10:     each_pair { |k,v| h[k] = v }
11:     h
12:   end
object_state(data=nil) click to toggle source
    # 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
replace(snap) click to toggle source
    # 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
to_h() click to toggle source

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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.