lib/facet/symbol/to_str.rb in facets-1.1.0 vs lib/facet/symbol/to_str.rb in facets-1.2.0
- old
+ new
@@ -1,39 +2 @@
-
-class Symbol
-
- # Symbol's really are just simplified strings.
- # Thus #to_str seems quite reasonable.
- # This uses the Kernal#String method.
- #--
- # Maybe just change to #to_s?
- # BTW: This would be lots faster, I bet, if implemented in core.
- #++
- def to_str
- String( self )
- end
-
-end
-
-
-
-# _____ _
-# |_ _|__ ___| |_
-# | |/ _ \/ __| __|
-# | | __/\__ \ |_
-# |_|\___||___/\__|
-#
-=begin test
-
- require 'test/unit'
-
- class TCSymbol < Test::Unit::TestCase
-
- def test_to_str
- assert_equal( "a", :a.to_str )
- assert_equal( "abc", :abc.to_str )
- assert_equal( '#$%', :'#$%'.to_str )
- end
-
- end
-
-=end
+require 'facets/core/symbol/to_str.rb'
\ No newline at end of file