Class: Formeze::Label

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

Instance Method Summary collapse

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_sObject



9
10
11
# File 'lib/formeze.rb', line 9

def to_s
  @name.to_s.tr('_', ' ').capitalize
end