Sha256: b0510717a23f1f95e16f434ab1c5a9cc3cc9e1306e94348a290e720bad0ac92e
Contents?: true
Size: 235 Bytes
Versions: 10
Compression:
Stored size: 235 Bytes
Contents
require 'facets/class/to_proc.rb' require 'test/unit' class TC_Class_ToProc < Test::Unit::TestCase Person = Struct.new(:name) def test_to_proc people = ["joe"].map(&Person) assert_equal("joe", people[0].name) end end
Version data entries
10 entries across 10 versions & 1 rubygems