Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/rally_rest_api/query.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#to_camel(downcase_first_letter = false) ⇒ Object



4
5
6
# File 'lib/rally_rest_api/query.rb', line 4

def to_camel(downcase_first_letter = false)
  word = self.split(/\./).map { |word| word.split(/_/).map { |word| word.capitalize }.join}.join('.')
end