Expectations are built with this method.
A :foo challenge
send(:foo) # => #<Defi::Challenge:0x007f96a40925f8 @method=:foo, @args=[]>
Parameters:
The method to send to an object.
Any arguments of the method.
Any keyword arguments of the method.
Any block argument of the method.
Returns:
The challenge instance.
17 18 19
# File 'lib/defi.rb', line 17 def self.send(method, *args, **kwargs, &block) Challenge.new(method, *args, **kwargs, &block) end