Class: Utils::ConfigFile::Probe

Inherits:
BlockConfig show all
Defined in:
lib/utils/config_file.rb

Instance Method Summary collapse

Methods inherited from BlockConfig

config, inherited, #to_ruby

Constructor Details

#initialize(&block) ⇒ Probe

Returns a new instance of Probe.



91
92
93
94
95
96
97
# File 'lib/utils/config_file.rb', line 91

def initialize(&block)
  super
  test_frameworks_allowed = [ :'test-unit', :rspec ]
  test_frameworks_allowed.include?(test_framework) or
    raise ConfigFileError,
      "test_framework has to be in #{test_frameworks_allowed.inspect}"
end

Instance Method Details

#include_dirs_argumentObject



87
88
89
# File 'lib/utils/config_file.rb', line 87

def include_dirs_argument
  Array(include_dirs) * ':'
end