module Gamefic::Scriptable::Syntaxes
def interpret command, translation
-
(Syntax)
- the Syntax object
Parameters:
-
translation
(String
) -- The format of the translated command -
command
(String
) -- The format of the original command
Other tags:
- Example: Create a parameterized synonym for a `look` response. -
Example: Create a synonym for an `inventory` response. -
def interpret command, translation syntaxes.push(Syntax.new(command, translation)).last end
def syntaxes
def syntaxes @syntaxes ||= [] end