Module: Seafoam::Graal::Source
- Defined in:
- lib/seafoam/graal/source.rb
Overview
Routines for understanding source positions in Graal.
Class Method Summary collapse
Class Method Details
.walk(source_position, &block) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/seafoam/graal/source.rb', line 8 def walk(source_position, &block) results = [] caller = source_position while caller method = caller[:method] results.push(block.call(method)) caller = caller[:caller] end results end |