Module: StoreConfigurable::Object::Behavior

Included in:
StoreConfigurable::Object
Defined in:
lib/store_configurable/object.rb

Overview

Instance methods for StoreConfigurable::Object defined and included in a module so that if you ever wanted to, you could redefine these methods and super up.

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)



63
64
65
# File 'lib/store_configurable/object.rb', line 63

def method_missing(method, *args, &block)
  __config__.__send__ method, *args, &block
end

Instance Attribute Details

#__store_configurable_owner__Object

Returns the value of attribute store_configurable_owner.



55
56
57
# File 'lib/store_configurable/object.rb', line 55

def __store_configurable_owner__
  @__store_configurable_owner__
end

Instance Method Details

#__config__Object



57
58
59
# File 'lib/store_configurable/object.rb', line 57

def __config__
  @__config__ ||= DirtyTrackingOrderedOptions.new(@__store_configurable_owner__)
end