module Setsuzoku::HasConfigContext
Set of methods/functionality for managing a classes config_context
Attributes
config_context[RW]
Public Instance Methods
get_from_context(method)
click to toggle source
Retrieve a value from config_context
or call the default method implementation for the class.
@return [Any] the value of the key in config_context
, or return value of the method.
# File lib/setsuzoku/has_config_context.rb, line 19 def get_from_context(method) if self.config_context.key?(method) self.get_registered_instance_val(method) else self.send(method) if self.respond_to?(method) end end