Class: Farseer::Char
Constant Summary collapse
- L_PARENS =
new('(')
- R_PARENS =
new(')')
- PLUS =
new('+')
- MINUS =
new('-')
- STAR =
new('*')
- SLASH =
new('/')
Instance Method Summary collapse
-
#initialize(char) ⇒ Char
constructor
A new instance of Char.
- #parse(input) ⇒ Object
Methods included from MapFactory
Constructor Details
#initialize(char) ⇒ Char
Returns a new instance of Char.
7 8 9 10 |
# File 'lib/farseer/char.rb', line 7 def initialize(char) @char = char freeze end |