Sha256: 5228adcb9cdd289a63714b2a08574631cc3dd95504608f6977e0333f9c708f74

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 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) -> D
  def method_missing: (:foo m, *:X | :Y | :Z args) -> nil
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typeprof-0.14.1 smoke/method_missing.rb
typeprof-0.14.0 smoke/method_missing.rb
typeprof-0.13.0 smoke/method_missing.rb
typeprof-0.12.0 smoke/method_missing.rb
typeprof-0.11.0 smoke/method_missing.rb
typeprof-0.10.0 smoke/method_missing.rb