Module: ComponentHelper
- Defined in:
- lib/komponent/component_helper.rb
Instance Attribute Summary collapse
-
#properties ⇒ Object
Returns the value of attribute properties.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#properties ⇒ Object
Returns the value of attribute properties.
8 9 10 |
# File 'lib/komponent/component_helper.rb', line 8 def properties @properties end |
Class Method Details
.extended(component) ⇒ Object
10 11 12 |
# File 'lib/komponent/component_helper.rb', line 10 def self.extended(component) component.properties = {} end |
Instance Method Details
#property(name, options = {}) ⇒ Object
4 5 6 |
# File 'lib/komponent/component_helper.rb', line 4 def property(name, = {}) @properties[name] = end |