Class: Datacaster::ContextNodes::UserContext

Inherits:
Datacaster::ContextNode show all
Defined in:
lib/datacaster/context_nodes/user_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, user_context) ⇒ UserContext

Returns a new instance of UserContext.



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

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

Instance Method Details

#inspectObject



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

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