class Logux::ActionWatcher

Attributes

options[R]

Public Class Methods

call(options = {}, &block) click to toggle source
# File lib/logux/action_watcher.rb, line 5
def self.call(options = {}, &block)
  new(options).call(&block)
end
new(options = {}) click to toggle source
# File lib/logux/action_watcher.rb, line 11
def initialize(options = {})
  raise ArgumentError, :options unless options.is_a?(Hash)

  @options = options
end

Public Instance Methods

call() { || ... } click to toggle source
# File lib/logux/action_watcher.rb, line 17
def call
  yield
end