lib/shotgun/services/mapper.rb
# When a constant is requested that is missing, this function builds
# the desired constant, extending itself in a recursive manner,
# facilitating dynamic micro-service definition.
#
# @note Once a class has been defined as a micro-service here, it is
#   set within the namespace, meaning all subsequent calls do not re-
#   define the class.
When a constant is requested that is missing, this function builds
the desired constant, extending itself in a recursive manner,
facilitating dynamic micro-service definition.
When a constant is requested that is missing this function builds the desired constant extending itself in a recursive manner facilitating dynamic micro - service definition .
def const_missing(name)
          klass = Class.new
          klass.extend ClassMethods
          klass.send :prepend, ContextMethods
          set_context_accessor name
          const_set name, klass
        end
def const_missing ( name ) klass = Class . new klass . extend ClassMethods klass . send :prepend , ContextMethods set_context_accessor name const_set name , klass end
When a constant is requested that is missing, this function builds
the desired constant, extending itself in a recursive manner,
facilitating dynamic micro-service definition.
When a constant is requested that is missing this function builds the desired constant extending itself in a recursive manner facilitating dynamic micro - service definition .
name
<not_specific>
note
Once a class has been defined as a micro-service here, it is set within the namespace, meaning all subsequent calls do not re define the class.
Once a class has been defined as a micro - service here it is set within the namespace meaning all subsequent calls do not re define the class .