Method: Heist::Runtime::Macro::Matches#get
- Defined in:
- lib/runtime/callable/macro/matches.rb
#get(name) ⇒ Object
Retrieves an expression from the Matches
under the given name
. The receiver deals with pulling the expression from the right point in the tree; see the expand!
, iterate!
and Tree#read
and Tree#shift!
methods.
113 114 115 |
# File 'lib/runtime/callable/macro/matches.rb', line 113 def get(name) @data[name.to_s].read end |