class Courgette::Scope

Public Instance Methods

scope(sexpr) click to toggle source
# 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