Module: Olelo::Attributes::ClassMethods
- Defined in:
- lib/olelo/attributes.rb
Overview
Extends class with attribute editor DSL
Instance Method Summary collapse
-
#attribute_group ⇒ AttributeGroup
private
Root attribute group.
-
#attributes { ... } ⇒ void
Add attribute to the attribute editor.
Instance Method Details
#attribute_group ⇒ AttributeGroup
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Root attribute group
238 239 240 |
# File 'lib/olelo/attributes.rb', line 238 def attribute_group @attribute_group ||= AttributeGroup.new end |
#attributes { ... } ⇒ void
This method returns an undefined value.
Add attribute to the attribute editor
260 261 262 |
# File 'lib/olelo/attributes.rb', line 260 def attributes(&block) AttributeDSL.new(attribute_group, &block) end |