Module: Proteus::Helpers::StringHelpers

Included in:
App, Modules::TerraformModule, Templates::TemplateBinding
Defined in:
lib/proteus/helpers/string_helpers.rb

Instance Method Summary collapse

Instance Method Details

#_(input) ⇒ Object



8
9
10
# File 'lib/proteus/helpers/string_helpers.rb', line 8

def _(input)
  input.gsub('-', '_')
end

#camel_case(input) ⇒ Object



4
5
6
# File 'lib/proteus/helpers/string_helpers.rb', line 4

def camel_case(input)
  input.split('_').collect(&:capitalize).join
end