Class: WhoAmI::Function::ParseModel

Inherits:
Object
  • Object
show all
Includes:
ProcParty
Defined in:
lib/who_am_i/function/parse_model.rb

Instance Method Summary collapse

Instance Method Details

#call(path) ⇒ Object



6
7
8
9
10
11
# File 'lib/who_am_i/function/parse_model.rb', line 6

def call(path)
  walker = WhoAmI::FindClasses.new
  extracted_classes = walker.read_and_call(path)

  extracted_classes.each { |klass| klass.model_filepath = path }
end