Class: Monoz::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/monoz/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandsObject (readonly)

Returns the value of attribute commands.



13
14
15
# File 'lib/monoz/action.rb', line 13

def commands
  @commands
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/monoz/action.rb', line 13

def name
  @name
end