ruby/bootstraptest/test_struct.rb

6 строки
116 B
Ruby

assert_equal 'Struct::Foo', %q{
Struct.instance_eval { const_set(:Foo, nil) }
Struct.new("Foo")
Struct::Foo
}