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_socializer_actions-2.0.2 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-2.0.1 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.8 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.7 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.6 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.5 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.4 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.3 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.1 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.2.0 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.1.0 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-1.0.0 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-0.1.0 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-0.0.2 lib/mongoid_socializer_actions/helper.rb
mongoid_socializer_actions-0.0.1 lib/mongoid_socializer_actions/helper.rb
mongoid_likes-0.1.1 lib/mongoid_likes/helper.rb
mongoid_likes-0.1.0 lib/mongoid_likes/helper.rb
mongoid_likes-0.0.2 lib/mongoid_likes/helper.rb
mongoid_likes-0.0.1 lib/mongoid_likes/helper.rb
mongoid_follow-0.2.3 lib/mongoid_follow/helper.rb