Class: Card::Mod::LoadStrategy::TmpFiles

Inherits:
Card::Mod::LoadStrategy show all
Defined in:
lib/card/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 Card::Mod::LoadStrategy

#initialize, klass

Constructor Details

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

Instance Method Details

#clean_comments?Boolean

Returns:

  • (Boolean)


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

def clean_comments?
  true
end

#load_modulesObject



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

def load_modules
  generate_tmp_files if rewrite_tmp_files?
  load_tmp_files
end