Class: Language::Atom::Any
- Inherits:
-
Language::Atom
- Object
- Language::Atom
- Language::Atom::Any
- Defined in:
- lib/language/atom/any.rb
Instance Method Summary collapse
Methods inherited from Language::Atom
#<<, #>>, #absent, #aka, #any, #ignore, #inspect, #maybe, #repeat, #str, #then, #|
Instance Method Details
#parse(parser) ⇒ Object
6 7 8 |
# File 'lib/language/atom/any.rb', line 6 def parse(parser) parser.consume(1) end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/language/atom/any.rb', line 10 def to_s "any" end |