Sha256: 2c5d5863961233dff620eab48612055daab1c68eb2ceeb5f4690cf6737f79609

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

class String
  def first_caps
    self.split(/ /).map{|x| x.capitalize}.join(' ')
  end
  def my_underscore #fills in the gap in rails inflectors, since their #underscore method only works for CamelCase
    self.downcase.gsub(/\s+/,"_")
  end
  def from_pe
    "hi, I'm from the pixelearth gem"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pixelearth-3.2.4 lib/required/string.rb