Module: Ws::Style::Inflector

Defined in:
lib/ws/style/inflector.rb

Instance Method Summary collapse

Instance Method Details

#camel_to_snake_case(string) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/ws/style/inflector.rb', line 6

def camel_to_snake_case(string)
  if defined?(ActiveSupport::Inflector)
    ActiveSupport::Inflector.underscore(string)
  else
    super(string)
  end
end