class TRecs::CustomStrategy

Attributes

action[RW]
recorder[RW]

Public Class Methods

new(action = ->{} click to toggle source
# File lib/trecs/strategies/custom_strategy.rb, line 8
def initialize(action = ->{})
  @action = action
end

Public Instance Methods

perform() click to toggle source
# File lib/trecs/strategies/custom_strategy.rb, line 12
def perform
  self.action.call
end