Sha256: 0925c189e3b8cad242a4b890f08c0c0de4b6fb403c8514edce55b2f9838953a5

Contents?: true

Size: 372 Bytes

Versions: 5

Compression:

Stored size: 372 Bytes

Contents

class D
  def foo(x, y, z)
  end
end

class C
  def initialize(x)
    @target = x
  end

  def method_missing(m, *args)
    @target.send(m, *args)
  end
end

C.new(D.new).foo(:X, :Y, :Z)

__END__
# Classes
class D
  def foo: (:X x, :Y y, :Z z) -> nil
end

class C
  @target: D

  def initialize: (D x) -> void
  def method_missing: (:foo m, *:X | :Y | :Z args) -> nil
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/method_missing.rb
typeprof-0.15.3 smoke/method_missing.rb
typeprof-0.15.2 smoke/method_missing.rb
typeprof-0.15.1 smoke/method_missing.rb
typeprof-0.15.0 smoke/method_missing.rb