Class: Logux::ActionWatcher
- Inherits:
-
Object
- Object
- Logux::ActionWatcher
- Defined in:
- lib/logux/action_watcher.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options = {}) ⇒ ActionWatcher
constructor
A new instance of ActionWatcher.
Constructor Details
#initialize(options = {}) ⇒ ActionWatcher
Returns a new instance of ActionWatcher.
11 12 13 14 15 |
# File 'lib/logux/action_watcher.rb', line 11 def initialize( = {}) raise ArgumentError, :options unless .is_a?(Hash) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/logux/action_watcher.rb', line 9 def @options end |
Class Method Details
.call(options = {}, &block) ⇒ Object
5 6 7 |
# File 'lib/logux/action_watcher.rb', line 5 def self.call( = {}, &block) new().call(&block) end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/logux/action_watcher.rb', line 17 def call yield end |