Sha256: 5fa9b25ba3833f82d710d1d46c4248ada34daa608ba932b781d7e8e0b22de8f1

Contents?: true

Size: 283 Bytes

Versions: 20

Compression:

Stored size: 283 Bytes

Contents

# From active-support/inflector.rb  
class String
  def camelize(first_letter_in_uppercase = true)
    s = self
    if first_letter_in_uppercase
      s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
    else
      s[0..0] + s.camelize[1..-1]
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
bluemark-smallcage-0.1.3 lib/smallcage/misc.rb
bluemark-smallcage-0.1.4 lib/smallcage/misc.rb
bluemark-smallcage-0.1.5 lib/smallcage/misc.rb
smallcage-0.2.4 lib/smallcage/misc.rb
smallcage-0.2.3 lib/smallcage/misc.rb
smallcage-0.2.2 lib/smallcage/misc.rb
smallcage-0.2.1 lib/smallcage/misc.rb
smallcage-0.2.0 lib/smallcage/misc.rb
smallcage-0.1.9 lib/smallcage/misc.rb
smallcage-0.1.8 lib/smallcage/misc.rb
smallcage-0.1.7 lib/smallcage/misc.rb
smallcage-0.1.6 lib/smallcage/misc.rb
smallcage-0.1.5 lib/smallcage/misc.rb
smallcage-0.1.4 lib/smallcage/misc.rb
smallcage-0.0.9 lib/smallcage/misc.rb
smallcage-0.1.1 lib/smallcage/misc.rb
smallcage-0.1.3 lib/smallcage/misc.rb
smallcage-0.1.2 lib/smallcage/misc.rb
smallcage-0.1.0 lib/smallcage/misc.rb
smallcage-0.0.8 lib/smallcage/misc.rb