Module: ToLabel
- Defined in:
- lib/html_tables/to_label.rb
Instance Method Summary collapse
-
#to_label(*args) ⇒ Object
override this method on subclasses as needed.
Instance Method Details
#to_label(*args) ⇒ Object
override this method on subclasses as needed
5 6 7 8 9 10 |
# File 'lib/html_tables/to_label.rb', line 5 def to_label(*args) [:name, :code, :nome, :codigo].each do |m| return public_send(m) if respond_to?(m) end to_s end |