Class: Config::SimpleBinDir

Inherits:
SimpleItem show all
Defined in:
lib/module_config/items/simplebindir.rb

Instance Attribute Summary

Attributes inherited from SimpleItem

#name, #value

Attributes inherited from Item

#priority

Instance Method Summary collapse

Methods inherited from SimpleItem

getRegex, #merge, #print

Methods inherited from Item

#merge, #name, #print, #value

Constructor Details

#initialize(_str, _regex) ⇒ SimpleBinDir

Returns a new instance of SimpleBinDir.

Raises:



23
24
25
26
# File 'lib/module_config/items/simplebindir.rb', line 23

def initialize(_str, _regex)
    super(_str, _regex)
    raise ConfigWrongFormatException.new(self.class), "The value of BinDir (#{@value}) is no valid directory!" unless File.directory?(@value) or @value==""
end