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

Inherits:
Cardio::Mod::LoadStrategy show all
Defined in:
card/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 Attribute Summary

Attributes inherited from Cardio::Mod::LoadStrategy

#loader

Instance Method Summary collapse

Methods inherited from Cardio::Mod::LoadStrategy

class_for_set, class_for_set_pattern, #initialize, 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 'card/lib/cardio/mod/load_strategy/tmp_files.rb', line 12

def clean_comments?
  true
end

#load_modulesObject



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

def load_modules
  generate_tmp_files if rewrite_tmp_files?
  load_tmp_files
end