Module: Assertion::DSL::Caller
Overview
Allows to initialize and call objects at once
Instance Method Summary collapse
-
#[](*args) ⇒ Object
Initializes and immediately calls the instance of the class.
Instance Method Details
#[](*args) ⇒ Object
Initializes and immediately calls the instance of the class
18 19 20 |
# File 'lib/assertion/dsl/caller.rb', line 18 def [](*args) new(*args).call end |