Class: DataBindings::Adapters::Ruby::RubyObjectAdapter

Inherits:
IndifferentHash
  • Object
show all
Includes:
Unbound
Defined in:
lib/data_bindings/adapters/ruby.rb

Instance Attribute Summary

Attributes included from Unbound

#binding, #binding_name

Instance Method Summary collapse

Methods included from Unbound

#array?, #bind, #bind!, #bind_array, #binding_class, #convert_target, #hash?, #to_native, #type, #update_binding

Methods included from Hashie::Extensions::IndifferentAccess

#convert!, #convert_key, #convert_value, included, #indifferent_access?, #indifferent_default, #indifferent_delete, #indifferent_fetch, #indifferent_key?, #indifferent_update, #indifferent_values_at, #indifferent_writer, inject, inject!

Constructor Details

#initialize(generator, o) ⇒ RubyObjectAdapter

Returns a new instance of RubyObjectAdapter.



37
38
39
40
# File 'lib/data_bindings/adapters/ruby.rb', line 37

def initialize(generator, o)
  @generator = generator
  replace o
end