Class: Formup::AttrDef

Inherits:
Object
  • Object
show all
Defined in:
lib/formup/attr_def.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attrObject (readonly)

Returns the value of attribute attr.



4
5
6
# File 'lib/formup/attr_def.rb', line 4

def attr
  @attr
end

#baseObject (readonly)

Returns the value of attribute base.



4
5
6
# File 'lib/formup/attr_def.rb', line 4

def base
  @base
end