Sha256: 2bc47d128b442cda47fb0b6ff8b9c2ad78cce2bcdf65df30610f86e2f4b76f97

Contents?: true

Size: 320 Bytes

Versions: 32

Compression:

Stored size: 320 Bytes

Contents

class String

  #returns a string with the first letter downcased, the rest is unchanged
  def downcase_first_letter
    self[0,1].downcase + self[1..-1]
  end

  #downcases the first letter in place
  def downcase_first_letter!
    lc_first_letter = self[0,1].downcase
    self[0] = lc_first_letter
    self
  end

end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
masterview-0.0.16 lib/masterview/string_extensions.rb
masterview-0.0.17 lib/masterview/string_extensions.rb
masterview-0.0.2 lib/masterview/string_extensions.rb
masterview-0.0.13 lib/masterview/string_extensions.rb
masterview-0.0.14 lib/masterview/string_extensions.rb
masterview-0.0.15 lib/masterview/string_extensions.rb
masterview-0.0.10 lib/masterview/string_extensions.rb
masterview-0.0.11 lib/masterview/string_extensions.rb
masterview-0.0.12 lib/masterview/string_extensions.rb
masterview-0.0.9 lib/masterview/string_extensions.rb
masterview-0.1.0 lib/masterview/string_extensions.rb
masterview-0.1.1 lib/masterview/string_extensions.rb
masterview-0.2.0 lib/masterview/string_extensions.rb
masterview-0.1.2 lib/masterview/string_extensions.rb
masterview-0.2.1 lib/masterview/string_extensions.rb
masterview-0.1.5 lib/masterview/string_extensions.rb
masterview-0.1.3 lib/masterview/string_extensions.rb
masterview-0.0.7 lib/masterview/string_extensions.rb
masterview-0.0.8 lib/masterview/string_extensions.rb
masterview-0.3.4 lib/masterview/core_ext/string.rb