class Interactors::Anonymous

Anonymous interactors Does two things:

- passes context to the proc
- honors #compose interface

Attributes

block[R]

Public Class Methods

new(&blk) click to toggle source
# File lib/interactors/anonymous.rb, line 12
def initialize(&blk)
  @block = blk
end

Public Instance Methods

call(context = {}) click to toggle source
# File lib/interactors/anonymous.rb, line 16
def call(context = {})
  block.call(context)
end