module Assertion::DSL::Caller
Allows to initialize and call objects at once
Public Instance Methods
[](*args)
click to toggle source
Initializes and immediately calls the instance of the class
@param [Object, Array<Object>] args
The <list of> arguments to initialize the instance with
@return [Object] the result of call method
# File lib/assertion/dsl/caller.rb, line 18 def [](*args) new(*args).call end