Module: Interaction::ClassMethods
- Defined in:
- lib/interaction.rb
Instance Method Summary collapse
-
#perform(*args) ⇒ Object
Executes and returns the use case.
Instance Method Details
#perform(*args) ⇒ Object
Executes and returns the use case
A use case object is instantiated with the supplied arguments, perform is called and the object is returned.
48 49 50 51 52 |
# File 'lib/interaction.rb', line 48 def perform(*args) new(*args).tap do |use_case| use_case.perform end end |