Method: Transpec::StaticContextInspector#scopes

Defined in:
lib/transpec/static_context_inspector.rb

#scopesObject



43
44
45
46
47
48
49
# File 'lib/transpec/static_context_inspector.rb', line 43

def scopes
  @scopes ||= begin
    scopes = valid_ancestor_nodes.reverse_each.map { |node| scope_type(node) }
    scopes.compact!
    scopes.extend(ArrayExtension)
  end
end