Class: Swarm::Observers::Base
- Inherits:
-
Object
- Object
- Swarm::Observers::Base
- Extended by:
- Forwardable
- Defined in:
- lib/swarm/observers/base.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
- #after_action ⇒ Object
- #before_action ⇒ Object
-
#initialize(command) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(command) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/swarm/observers/base.rb', line 9 def initialize(command) @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
7 8 9 |
# File 'lib/swarm/observers/base.rb', line 7 def command @command end |
Instance Method Details
#after_action ⇒ Object
14 |
# File 'lib/swarm/observers/base.rb', line 14 def after_action; end |
#before_action ⇒ Object
13 |
# File 'lib/swarm/observers/base.rb', line 13 def before_action; end |