class Gamefic::Command
A Command
is a collection of tokens parsed from a Syntax
. Playbooks use Commands to find and execute corresponding Actions.
Attributes
arguments[R]
An Array
of arguments to be mapped to an Action's Queries.
@return [Array<String>]
verb[R]
A Symbol
representing the command's verb or verbal phrase.
@return [Symbol]
Public Class Methods
new(verb, arguments)
click to toggle source
# File lib/gamefic/command.rb, line 16 def initialize verb, arguments @verb = verb @arguments = arguments end