class Ractor::Wrapper::Stub
A stub that forwards calls to a wrapper.
Public Class Methods
new(wrapper)
click to toggle source
Create a stub given a wrapper.
@param wrapper [Ractor::Wrapper]
# File lib/ractor/wrapper.rb, line 334 def initialize(wrapper) @wrapper = wrapper freeze end
Public Instance Methods
method_missing(name, *args, **kwargs)
click to toggle source
Forward calls to {Ractor::Wrapper#call}. @private
# File lib/ractor/wrapper.rb, line 343 def method_missing(name, *args, **kwargs) @wrapper.call(name, *args, **kwargs) end
respond_to_missing?(name, include_all)
click to toggle source
Forward respond_to queries. @private
# File lib/ractor/wrapper.rb, line 351 def respond_to_missing?(name, include_all) @wrapper.call(:respond_to?, name, include_all) end