Sha256: 1b8c69d2a742e80fadbdb6f09af87e38d01c6033bc9640e11e26f504ec51bc7c
Contents?: true
Size: 353 Bytes
Versions: 3
Compression:
Stored size: 353 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, :Y, :Z) -> nil end class C @target: D def initialize: (D) -> D def method_missing: (:foo, *:X | :Y | :Z) -> nil end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.9.2 | smoke/method_missing.rb |
typeprof-0.9.1 | smoke/method_missing.rb |
typeprof-0.9.0 | smoke/method_missing.rb |