Sha256: 0312d5c0536d944cbf8089eb41a28a1b0605357f63db97646ab364777716ba68

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

require 'nano/symbol/capitalized'

class Symbol

  def capitalize
    to_s.capitalize.to_sym
  end

end


#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
=begin test

  require 'test/unit'

  class TCSymbol < Test::Unit::TestCase

    def test_capitalized?
      assert_equal( :Tis, :tis.capitalize )
    end

  end

=end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/nano/symbol/capitalize.rb