Class: WhoAmI::Function::WriteModel
- Inherits:
-
Object
- Object
- WhoAmI::Function::WriteModel
- Includes:
- ProcParty
- Defined in:
- lib/who_am_i/function/write_model.rb
Instance Method Summary collapse
Instance Method Details
#call(extracted_class) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/who_am_i/function/write_model.rb', line 6 def call(extracted_class) content = "#{extracted_class.computed_header}" \ "\n" \ "#{extracted_class.computed_content}" File.write(extracted_class.model_filepath, content) end |