Module: Zoro::FieldName
- Defined in:
- lib/zoro/field_name.rb
Class Method Summary collapse
Class Method Details
.make_field(name) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/zoro/field_name.rb', line 3 def self.make_field(name) clean_up = name.gsub(/_/, ' ') clean_up = clean_up.gsub(/=/, '') words = clean_up.split words.map do |w| w.capitalize end.join(" ") end |