Sha256: dcb02d6096f3bd8b8ff6263d6171b88fecb9074282e1cdd84f0cc4a14db591ed
Contents?: true
Size: 440 Bytes
Versions: 22
Compression:
Stored size: 440 Bytes
Contents
require 'facet/string/capitalized' require 'facet/symbol/capitalize' class Symbol def capitalized? to_s.capitalized? end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCSymbol < Test::Unit::TestCase def test_capitalized? assert( :Tis.capitalized? ) assert( ! :tis.capitalized? ) end end =end
Version data entries
22 entries across 22 versions & 1 rubygems