Class: Swarm::Observers::Base
- Inherits:
-
Object
- Object
- Swarm::Observers::Base
- Extended by:
- Forwardable
- Defined in:
- lib/swarm/observers/base.rb
Direct Known Subclasses
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.
11 12 13 |
# File 'lib/swarm/observers/base.rb', line 11 def initialize(command) @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
9 10 11 |
# File 'lib/swarm/observers/base.rb', line 9 def command @command end |
Instance Method Details
#after_action ⇒ Object
16 |
# File 'lib/swarm/observers/base.rb', line 16 def after_action; end |
#before_action ⇒ Object
15 |
# File 'lib/swarm/observers/base.rb', line 15 def before_action; end |