Sha256: 5342a747dab6a1317dc1520b9abe6e46e158c0ea75d6a7a2a12bffbe0421878b
Contents?: true
Size: 357 Bytes
Versions: 2
Compression:
Stored size: 357 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.8.0 | smoke/method_missing.rb |
typeprof-0.7.0 | smoke/method_missing.rb |