Class: Formeze::Label
- Inherits:
-
Object
- Object
- Formeze::Label
- Defined in:
- lib/formeze.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Label
constructor
A new instance of Label.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Label
Returns a new instance of Label.
5 6 7 |
# File 'lib/formeze.rb', line 5 def initialize(name) @name = name end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/formeze.rb', line 9 def to_s @name.to_s.tr('_', ' ').capitalize end |