Method: Axlsx.camel
- Defined in:
- lib/axlsx.rb
.camel(s = "", all_caps = true) ⇒ String
performs the increadible feat of changing snake_case to CamelCase
127 128 129 130 131 |
# File 'lib/axlsx.rb', line 127 def self.camel(s="", all_caps = true) s = s.to_s s = s.capitalize if all_caps s.gsub(/_(.)/){ $1.upcase } end |