Class: Courgette::Scope
- Inherits:
-
Object
- Object
- Courgette::Scope
- Defined in:
- lib/courgette/scope.rb
Instance Method Summary collapse
Instance Method Details
#scope(sexpr) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/courgette/scope.rb', line 3 def scope sexpr case sexpr[0] when :colon2 scope(sexpr[1]) + scope(sexpr[2]) when :const scope sexpr[1] else [sexpr] end end |