Class: Datacaster::ContextNodes::ObjectContext

Inherits:
Datacaster::ContextNode show all
Defined in:
lib/datacaster/context_nodes/object_context.rb

Instance Method Summary collapse

Methods inherited from Datacaster::ContextNode

#cast

Methods included from Mixin

#&, #*, #call, #call_with_runtime, #cast_errors, #i18n_key, #i18n_map_keys, #i18n_scope, #i18n_vars, #then, #with_context, #with_object_context, #with_runtime, #|

Constructor Details

#initialize(base, object) ⇒ ObjectContext

Returns a new instance of ObjectContext.



4
5
6
7
# File 'lib/datacaster/context_nodes/object_context.rb', line 4

def initialize(base, object)
  super(base)
  @object = object
end

Instance Method Details

#inspectObject



9
10
11
# File 'lib/datacaster/context_nodes/object_context.rb', line 9

def inspect
  "#<#{self.class.name}(#{@object.inspect}) base: #{@base.inspect}>"
end