Top Level Namespace
Defined Under Namespace
Modules: Tggl
Instance Method Summary collapse
Instance Method Details
#constant_case(str) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/tggl/reporting.rb', line 6 def constant_case(str) str .gsub(/([a-z])([A-Z])/, '\1_\2') .gsub(/[\W_]+/, '_') .upcase end |