Sha256: 045be5576b1885e6abf89a1dc9cd1833c95369031c7b26122cb849e99e175a92
Contents?: true
Size: 230 Bytes
Versions: 11
Compression:
Stored size: 230 Bytes
Contents
class A %i[a b].each.with_index { |sym, i| define_method(sym) { i } } end def foo A.new.a + A.new.b end __END__ # Classes class Object private def foo: -> Integer end class A def a: -> Integer def b: -> Integer end
Version data entries
11 entries across 11 versions & 1 rubygems