Class: WhoAmI::Function::ComputeContent

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

Instance Method Summary collapse

Instance Method Details

#call(extracted_class) ⇒ Object



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

def call(extracted_class)
  original_content = File.read(extracted_class.model_filepath)
  bare_content = RemoveAnnotation.new.call(original_content)
  extracted_class.computed_content = bare_content
end