Class: Gamefic::Command
- Inherits:
-
Object
- Object
- Gamefic::Command
- Defined in:
- lib/gamefic/command.rb
Overview
A concrete representation of an input as a verb and an array of arguments.
Instance Attribute Summary collapse
- #arguments ⇒ Array<Array<Entity>, Entity, String> readonly
- #verb ⇒ Symbol readonly
Instance Method Summary collapse
-
#initialize(verb, arguments) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(verb, arguments) ⇒ Command
Returns a new instance of Command.
15 16 17 18 |
# File 'lib/gamefic/command.rb', line 15 def initialize verb, arguments @verb = verb @arguments = arguments end |