Class: PrLog::Command
- Inherits:
-
Object
- Object
- PrLog::Command
- Includes:
- Events::Emitter
- Defined in:
- lib/pr_log/command.rb
Overview
Event emitting command base class
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.perform(options) {|command| ... } ⇒ Object
10 11 12 13 14 |
# File 'lib/pr_log/command.rb', line 10 def self.perform() command = new(Configuration.setup()) yield(command) if block_given? command.perform end |
Instance Method Details
#perform ⇒ Object
16 17 18 |
# File 'lib/pr_log/command.rb', line 16 def perform raise(NotImplementedError) end |