Class: Farseer::Chars
- Inherits:
-
Object
- Object
- Farseer::Chars
- Includes:
- MapFactory
- Defined in:
- lib/farseer/chars.rb
Constant Summary collapse
- DIGITS =
new(('0'..'9').to_a)
- BASIC_MATH_OP =
new(['+', '-', '*', '/'])
Instance Method Summary collapse
-
#initialize(*chars) ⇒ Chars
constructor
A new instance of Chars.
- #parse(input) ⇒ Object
Methods included from MapFactory
Constructor Details
#initialize(*chars) ⇒ Chars
Returns a new instance of Chars.
7 8 9 10 |
# File 'lib/farseer/chars.rb', line 7 def initialize(*chars) @chars = chars.flatten freeze end |