Class: EagerEye::ScopeParser

Inherits:
Object
  • Object
show all
Defined in:
lib/eager_eye/scope_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScopeParser

Returns a new instance of ScopeParser.



7
8
9
# File 'lib/eager_eye/scope_parser.rb', line 7

def initialize
  @scope_maps = {}
end

Instance Attribute Details

#scope_mapsObject (readonly)

Returns the value of attribute scope_maps.



5
6
7
# File 'lib/eager_eye/scope_parser.rb', line 5

def scope_maps
  @scope_maps
end

Instance Method Details

#parse_model(ast, model_name) ⇒ Object



11
12
13
14
15
# File 'lib/eager_eye/scope_parser.rb', line 11

def parse_model(ast, model_name)
  return unless ast

  traverse(ast, model_name)
end