Sha256: a2a9bd9c5da250c70359768042ba40fd0420758102e5ab831b00ffad6199c627

Contents?: true

Size: 243 Bytes

Versions: 47

Compression:

Stored size: 243 Bytes

Contents

class Object
  # active_support/inflector.rb
  def underscore(camel_cased_word)
    camel_cased_word.to_s.gsub(/::/, '/').
    gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
    gsub(/([a-z\d])([A-Z])/,'\1_\2').
    tr("-", "_").
    downcase
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
ruboto-0.13.0.rc.0 lib/ruboto/core_ext/object.rb
ruboto-0.12.0.rc.0 lib/ruboto/core_ext/object.rb
ruboto-0.11.0 lib/ruboto/core_ext/object.rb
ruboto-0.11.0.rc.1 lib/ruboto/core_ext/object.rb
ruboto-0.11.0.rc.0 lib/ruboto/core_ext/object.rb
ruboto-0.10.2 lib/ruboto/core_ext/object.rb
ruboto-0.10.2.rc.0 lib/ruboto/core_ext/object.rb
ruboto-0.10.1 lib/ruboto/core_ext/object.rb
ruboto-0.10.0 lib/ruboto/core_ext/object.rb
ruboto-0.10.0.rc.1 lib/ruboto/core_ext/object.rb
ruboto-0.10.0.rc.0 lib/ruboto/core_ext/object.rb
ruboto-0.9.0 lib/ruboto/core_ext/object.rb
ruboto-0.9.0.rc.1 lib/ruboto/core_ext/object.rb
ruboto-0.9.0.rc.0 lib/ruboto/core_ext/object.rb
ruboto-0.8.1 lib/ruboto/core_ext/object.rb
ruboto-0.8.0 lib/ruboto/core_ext/object.rb
ruboto-0.7.0 lib/ruboto/core_ext/object.rb
ruboto-0.6.0 lib/ruboto/core_ext/object.rb
ruboto-0.5.4 lib/ruboto/core_ext/object.rb
ruboto-0.5.3 lib/ruboto/core_ext/object.rb