Sha256: 1eec9cc54c7f453ca08165e5edff66acd0dd56e1b90cf1bfb1923c77bdb99768

Contents?: true

Size: 328 Bytes

Versions: 11

Compression:

Stored size: 328 Bytes

Contents

def log1(x); end
def log2(x); end
def log3(x); end

def f(&blk)
  log3(
    blk.call do |x|
      log1(x)
      :b
    end
  )
  :d
end

f do |&blk|
  log2(blk.call(:a))
  :c
end

__END__
# Classes
class Object
  private
  def log1: (:a x) -> nil
  def log2: (:b x) -> nil
  def log3: (:c x) -> nil
  def f: { -> :c } -> :d
end

Version data entries

11 entries across 11 versions & 1 rubygems

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