Class: MotionFlux::Action
- Inherits:
-
Object
- Object
- MotionFlux::Action
- Extended by:
- ClassMethods
- Defined in:
- lib/motion_flux/action.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #dispatch ⇒ Object
-
#initialize(message, *args) ⇒ Action
constructor
A new instance of Action.
- #to_s ⇒ Object
Constructor Details
#initialize(message, *args) ⇒ Action
Returns a new instance of Action.
5 6 7 8 |
# File 'lib/motion_flux/action.rb', line 5 def initialize , *args @message = @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/motion_flux/action.rb', line 3 def args @args end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/motion_flux/action.rb', line 3 def @message end |
Instance Method Details
#dispatch ⇒ Object
14 15 16 |
# File 'lib/motion_flux/action.rb', line 14 def dispatch Dispatcher.dispatch self end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/motion_flux/action.rb', line 10 def to_s "#{self.class}:#{}" end |