Class: Datacaster::ContextNodes::UserContext
- Inherits:
-
Datacaster::ContextNode
- Object
- Base
- Datacaster::ContextNode
- Datacaster::ContextNodes::UserContext
- Defined in:
- lib/datacaster/context_nodes/user_context.rb
Instance Method Summary collapse
-
#initialize(base, user_context) ⇒ UserContext
constructor
A new instance of UserContext.
- #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, 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
#inspect ⇒ Object
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 |