Class: Formup::AttrDef
- Inherits:
-
Object
- Object
- Formup::AttrDef
- Defined in:
- lib/formup/attr_def.rb
Instance Attribute Summary collapse
-
#attr ⇒ Object
readonly
Returns the value of attribute attr.
-
#base ⇒ Object
readonly
Returns the value of attribute base.
Instance Method Summary collapse
-
#initialize(base, attr) ⇒ AttrDef
constructor
A new instance of AttrDef.
Constructor Details
#initialize(base, attr) ⇒ AttrDef
Returns a new instance of AttrDef.
6 7 8 9 |
# File 'lib/formup/attr_def.rb', line 6 def initialize(base, attr) @base = base.to_s if base @attr = attr.to_s if attr end |
Instance Attribute Details
#attr ⇒ Object (readonly)
Returns the value of attribute attr.
4 5 6 |
# File 'lib/formup/attr_def.rb', line 4 def attr @attr end |
#base ⇒ Object (readonly)
Returns the value of attribute base.
4 5 6 |
# File 'lib/formup/attr_def.rb', line 4 def base @base end |