Sha256: f8ac3fe3b436a07556cecd01c3c50bfa5a139f6b3d5dd0cdbf09c5b1bdf146b1

Contents?: true

Size: 119 Bytes

Versions: 21

Compression:

Stored size: 119 Bytes

Contents

class String
  def camelize
    self.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
mongoid_follow-0.2.2 lib/mongoid_follow/helper.rb