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

Version Path
typeprof-0.20.0 smoke/define_method6.rb
typeprof-0.15.3 smoke/define_method6.rb
typeprof-0.15.2 smoke/define_method6.rb
typeprof-0.15.1 smoke/define_method6.rb
typeprof-0.15.0 smoke/define_method6.rb
typeprof-0.14.1 smoke/define_method6.rb
typeprof-0.14.0 smoke/define_method6.rb
typeprof-0.13.0 smoke/define_method6.rb
typeprof-0.12.0 smoke/define_method6.rb
typeprof-0.11.0 smoke/define_method6.rb
typeprof-0.10.0 smoke/define_method6.rb