lib/garcon/core_ext/struct.rb
# Get or set state of object. You can think of #object_state as an in-code
# form of marshalling.
#
Get or set state of object. You can think of #object_state as an in-code
form of marshalling.
Get or set state of object . You can think of #object_state as an in - code form of marshalling .
def object_state(data=nil)
    if data
      data.each_pair {|k,v| send(k.to_s + "=", v)}
    else
      data = {}
      each_pair{|k,v| data[k] = v}
      data
    end
  end
def object_state ( data = nil ) if data data . each_pair { | k , v | send ( k . to_s + "=" , v ) } else data = { } each_pair { | k , v | data [ k ] = v } data end end
Get or set state of object.
Get or set state of object .
data
<not_specific>