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 |
# File 'lib/courgette/scope.rb', line 3 def scope sexpr if sexpr.respond_to? :type sexpr.children.flat_map { |c| scope c } else [sexpr].compact end end |