Sha256: 1bb0b99bada408109bb5d6402dbad608db3163ffceda21da98270700a61548f8
Contents?: true
Size: 340 Bytes
Versions: 3
Compression:
Stored size: 340 Bytes
Contents
class String def first_caps self.split(/ /).map{|x| x.capitalize}.join(' ') end def sp_to_underscore #fills in the gap in rails inflectors, since their #underscore method only works for CamelCase self.downcase.gsub(/\s+/,"_") end end class Dir def filter(regex) self.select do |x| x =~ regex end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pixelearth-0.0.4 | lib/required/ruby_core_mods.rb |
pixelearth-0.0.3 | lib/required/ruby_core_mods.rb |
pixelearth-0.0.2 | lib/required/ruby_core_mods.rb |