Sha256: 54ca8e42ade2f84682fe5e203043fb9b5eabf6f6c8650fa9591f92720ecc7a22

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

class C
  def self.foo(&blk)
    new.instance_eval(&blk)
  end
  def log(n)
  end
end

C.foo do
  log(42)
end

__END__
# Classes
class C
  def self.foo : -> C
  def log : (Integer) -> nil
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typeprof-0.3.0 smoke/instance_eval.rb
typeprof-0.2.0 smoke/instance_eval.rb
typeprof-0.1.4 smoke/instance_eval.rb
typeprof-0.1.3 smoke/instance_eval.rb
typeprof-0.1.2 smoke/instance_eval.rb
typeprof-0.1.1 smoke/instance_eval.rb
typeprof-0.1.0 smoke/instance_eval.rb