Module: Gisele::Language::ScopingHelper::Methods
- Defined in:
- lib/gisele/language/processors/scoping_helper.rb
Instance Method Summary collapse
Instance Method Details
#scope_stack ⇒ Object
7 8 9 |
# File 'lib/gisele/language/processors/scoping_helper.rb', line 7 def scope_stack @scope_stack ||= [] end |
#with_scope(scope) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/gisele/language/processors/scoping_helper.rb', line 11 def with_scope(scope) scope_stack.push(scope) result = yield scope_stack.pop result end |