Class: Cardio::Mod::LoadStrategy::TmpFiles

Inherits:
Cardio::Mod::LoadStrategy show all
Defined in:
lib/cardio/mod/load_strategy/tmp_files.rb

Overview

LoadStrategy for mod modules. It writes the code to tmp files and then loads the tmp files. (deprecated)

Direct Known Subclasses

PatternTmpFiles, SetTmpFiles

Instance Method Summary collapse

Methods inherited from Cardio::Mod::LoadStrategy

#initialize, klass, tmp_files?

Constructor Details

This class inherits a constructor from Cardio::Mod::LoadStrategy

Instance Method Details

#clean_comments?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/cardio/mod/load_strategy/tmp_files.rb', line 12

def clean_comments?
  true
end

#load_modulesObject



7
8
9
10
# File 'lib/cardio/mod/load_strategy/tmp_files.rb', line 7

def load_modules
  generate_tmp_files if rewrite_tmp_files?
  load_tmp_files
end