Class: Exercism::Processors::RangeProcessor
- Inherits:
-
Object
- Object
- Exercism::Processors::RangeProcessor
- Defined in:
- lib/exercism-analysis/processors/range_processor.rb
Instance Method Summary collapse
-
#initialize ⇒ RangeProcessor
constructor
A new instance of RangeProcessor.
- #process_dot2(exp) ⇒ Object (also: #process_dot3)
- #result ⇒ Object
Constructor Details
#initialize ⇒ RangeProcessor
Returns a new instance of RangeProcessor.
6 7 8 |
# File 'lib/exercism-analysis/processors/range_processor.rb', line 6 def initialize @ranges = [] end |
Instance Method Details
#process_dot2(exp) ⇒ Object Also known as: process_dot3
10 11 12 |
# File 'lib/exercism-analysis/processors/range_processor.rb', line 10 def process_dot2(exp) @ranges << exp end |
#result ⇒ Object
14 15 16 |
# File 'lib/exercism-analysis/processors/range_processor.rb', line 14 def result @ranges end |