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)



74
75
76
# File 'lib/store_configurable/object.rb', line 74

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.



66
67
68
# File 'lib/store_configurable/object.rb', line 66

def __store_configurable_owner__
  @__store_configurable_owner__
end

Instance Method Details

#__config__Object



68
69
70
# File 'lib/store_configurable/object.rb', line 68

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