Class: Monoz::Action
- Inherits:
-
Object
- Object
- Monoz::Action
- Defined in:
- lib/monoz/action.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, raw_commands) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(name, raw_commands) ⇒ Action
Returns a new instance of Action.
15 16 17 18 19 |
# File 'lib/monoz/action.rb', line 15 def initialize(name, raw_commands) @name = name @commands = [] parse_commands(raw_commands) end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
13 14 15 |
# File 'lib/monoz/action.rb', line 13 def commands @commands end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/monoz/action.rb', line 13 def name @name end |