Sha256: 99cfc6c97131c602aab029760dd3a71921a2d4d755dce5579c72f163e4462c35
Contents?: true
Size: 543 Bytes
Versions: 6
Compression:
Stored size: 543 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # facets/attributes.rb require 'facets/attributes.rb' require 'test/unit' class TC_Attributes_Using_Attr < Test::Unit::TestCase class A attr :x, :cast=>"to_s" end def test_01 assert_equal( "to_s", A.ann(:x,:cast) ) end end class TC_Attributes_Using_Attr_Accessor < Test::Unit::TestCase class A attr_accessor :x, :cast=>"to_s" end def test_01 a = A.new assert_equal( [:x], A.attributes ) end end
Version data entries
6 entries across 6 versions & 1 rubygems