Sha256: f671063a08d6251f2ce57ca8395aea97117e01cc608ef4265db562e6d85d4abd
Contents?: true
Size: 297 Bytes
Versions: 3
Compression:
Stored size: 297 Bytes
Contents
#-- # Credit goes to Phil Tomson. #++ class String # Is the string capitalized? # # require 'facet/string/case?' # # "THIS".capitalized? #=> true # "This".capitalized? #=> true # "this".capitalized? #=> false # def capitalized? self.capitalize == self end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | lib/facet/string/capitalized%3F.rb |
facets-0.7.1 | lib/facet/string/capitalized%3F.rb |
facets-0.7.2 | lib/facet/string/capitalized%3F.rb |