class Amberletters::Trigger
Attributes
exclusive[RW]
exclusive?[RW]
interruption[RW]
logger[RW]
options[R]
time_to_live[RW]
Public Class Methods
new(options={}, &block)
click to toggle source
# File lib/amberletters.rb, line 66 def initialize(options={}, &block) @block = block || lambda{|*|} @exclusive = options.fetch(:exclusive) { false } @logger = ::Logger.new($stdout) @interruption = :none @options = options end
Public Instance Methods
call(process)
click to toggle source
# File lib/amberletters.rb, line 74 def call(process) @block.call(self, process) true end