Class: NRSER::Labs::LOTS::ArgConsumer
- Defined in:
- lib/nrser/labs/lots/consumer.rb
Instance Method Summary collapse
Methods inherited from Consumer
Constructor Details
This class inherits a constructor from NRSER::Labs::LOTS::Consumer
Instance Method Details
#can_consume?(tokens) ⇒ Boolean
25 26 27 28 29 30 31 32 33 |
# File 'lib/nrser/labs/lots/consumer.rb', line 25 def can_consume? tokens return 0 unless consumed.empty? if tokens[0][0] == '-' 0 else 1 end end |