Sha256: ced023d3d021691129505b5e9142fc64c44984dad7e8a16930b3b941b1663204
Contents?: true
Size: 251 Bytes
Versions: 4
Compression:
Stored size: 251 Bytes
Contents
module Zoro module FieldName 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
zoro-0.0.5 | lib/zoro/field_name.rb |
zoro-0.0.4 | lib/zoro/field_name.rb |
zoro-0.0.3 | lib/zoro/field_name.rb |
zoro-0.0.2 | lib/zoro/field_name.rb |