Sha256: 82d4b56d5c30b62c19b7176419b8716c0e171b68cc55f31af012f3f27f5cd128
Contents?: true
Size: 223 Bytes
Versions: 4
Compression:
Stored size: 223 Bytes
Contents
arr = [1,2,3] arr define_singleton_method: "foo" with: { "in foo!" println self inspect println } arr send: 'foo arr undefine_singleton_method: "foo" try { arr send: 'foo } catch NoMethodError => e { e println }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.3.3 | examples/define_methods.fy |
fancy-0.3.2 | examples/define_methods.fy |
fancy-0.3.1 | examples/define_methods.fy |
fancy-0.3.0 | examples/define_methods.fy |