Class: AttributeExtras::Modifier
- Inherits:
-
Object
- Object
- AttributeExtras::Modifier
- Defined in:
- lib/attribute_extras/modifier.rb
Overview
a container for an attribute that has been modified
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
the attribute this modifier represents.
-
#options ⇒ Object
readonly
the set of options generated for this attribute.
Instance Method Summary collapse
-
#initialize(attribute, options = {}) ⇒ Modifier
constructor
store the given options.
Constructor Details
#initialize(attribute, options = {}) ⇒ Modifier
store the given options
13 14 15 16 |
# File 'lib/attribute_extras/modifier.rb', line 13 def initialize(attribute, = {}) @attribute = attribute = end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
the attribute this modifier represents
7 8 9 |
# File 'lib/attribute_extras/modifier.rb', line 7 def attribute @attribute end |
#options ⇒ Object (readonly)
the set of options generated for this attribute
10 11 12 |
# File 'lib/attribute_extras/modifier.rb', line 10 def end |