Class: Datacaster::ContextNodes::ObjectContext
- Inherits:
-
Datacaster::ContextNode
- Object
- Base
- Datacaster::ContextNode
- Datacaster::ContextNodes::ObjectContext
- Defined in:
- lib/datacaster/context_nodes/object_context.rb
Instance Method Summary collapse
-
#initialize(base, object) ⇒ ObjectContext
constructor
A new instance of ObjectContext.
- #inspect ⇒ Object
Methods inherited from Datacaster::ContextNode
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
#inspect ⇒ Object
9 10 11 |
# File 'lib/datacaster/context_nodes/object_context.rb', line 9 def inspect "#<#{self.class.name}(#{@object.inspect}) base: #{@base.inspect}>" end |