Class: PrLog::Command
- Inherits:
-
Struct
- Object
- Struct
- PrLog::Command
- Includes:
- Events::Emitter
- Defined in:
- lib/pr_log/command.rb
Overview
Event emitting command base class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
5 6 7 |
# File 'lib/pr_log/command.rb', line 5 def config @config end |
Class Method Details
.perform(options) {|command| ... } ⇒ Object
8 9 10 11 12 |
# File 'lib/pr_log/command.rb', line 8 def self.perform() command = new(Configuration.setup()) yield(command) if block_given? command.perform end |
Instance Method Details
#perform ⇒ Object
14 15 16 |
# File 'lib/pr_log/command.rb', line 14 def perform fail(NotImplementedError) end |