Sha256: b1d92ab0cab7aecdd29bf2ec08dd6458189cd23acb873b49da38b09d0c9d99c9

Contents?: true

Size: 94 Bytes

Versions: 6

Compression:

Stored size: 94 Bytes

Contents

class String
  def snake_to_camel
    self.gsub(/(?:_|^)([[:word:]])/) { $1.upcase }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
exact_target_rest-0.2.6 lib/exact_target_rest/support/string_extension.rb
exact_target_rest-0.2.5 lib/exact_target_rest/support/string_extension.rb
exact_target_rest-0.2.4 lib/exact_target_rest/support/string_extension.rb
exact_target_rest-0.2.2 lib/exact_target_rest/support/string_extension.rb
exact_target_rest-0.1.1 lib/exact_target_rest/support/string_extension.rb
exact_target_rest-0.1.0 lib/exact_target_rest/support/string_extension.rb