Class: Orchparty::Context

Inherits:
Hashie::Mash
  • Object
show all
Includes:
Hashie::Extensions::DeepMerge, Hashie::Extensions::DeepMergeConcat, Hashie::Extensions::Mash::KeepOriginalKeys, Hashie::Extensions::MethodAccess
Defined in:
lib/orchparty/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hashie::Extensions::DeepMergeConcat

#deep_merge_concat, #deep_merge_concat!, #deep_sort, #deep_sort!, #deep_sort_by_key_and_sort_array, #deep_transform_values, #deep_transform_values!, #transform_keys, #transform_keys!, #transform_values, #transform_values!

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



10
11
12
13
14
# File 'lib/orchparty/context.rb', line 10

def method_missing(name, *args)
  raise "#{name} not declared for #{application.name}.#{service.name}" if @_force_variable_definition && !key?(name) && !key?(name.to_s)

  super
end

Instance Attribute Details

#_force_variable_definition=(value) ⇒ Object (writeonly)

Sets the attribute _force_variable_definition

Parameters:

  • value

    the value to set the attribute _force_variable_definition to.



16
17
18
# File 'lib/orchparty/context.rb', line 16

def _force_variable_definition=(value)
  @_force_variable_definition = value
end

Instance Method Details

#contextObject



18
19
20
# File 'lib/orchparty/context.rb', line 18

def context
  self
end