Sha256: 186890155276a6e00417cd3942013908d65dd80de9316fbe322f290fe604e7af

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

module NetSuite
  module Utilities
    module Strings
      class << self
        def lower_camelcase(obj)
          str = obj.is_a?(String) ? obj.dup : obj.to_s
          str.gsub!(/\/(.?)/) { "::#{$1.upcase}" }
          str.gsub!(/(?:_+|-+)([a-z]|[0-9])/) { $1.upcase }
          str.gsub!(/(\A|\s)([A-Z])/) { $1 + $2.downcase }
          str
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/utilities/strings.rb
netsuite-0.9.2 lib/netsuite/utilities/strings.rb
netsuite-0.9.1 lib/netsuite/utilities/strings.rb
netsuite-0.9.0 lib/netsuite/utilities/strings.rb
netsuite-0.8.12 lib/netsuite/utilities/strings.rb