Module: ConfigureMe::AttributeMethods::OverriddenClassMethods
- Defined in:
- lib/configure_me/attribute_methods.rb
Instance Method Summary collapse
- #class_settings ⇒ Object
- #define_attribute_methods(force = false) ⇒ Object
- #setting(name, *args) ⇒ Object
Instance Method Details
#class_settings ⇒ Object
18 19 20 |
# File 'lib/configure_me/attribute_methods.rb', line 18 def class_settings @class_settings ||= {} end |
#define_attribute_methods(force = false) ⇒ Object
22 23 24 25 26 |
# File 'lib/configure_me/attribute_methods.rb', line 22 def define_attribute_methods(force = false) return if class_settings.empty? undefine_attribute_methods if force super(class_settings.keys) end |