Class: Config::SimpleVerbose
- Inherits:
-
SimpleItem
- Object
- Item
- SimpleItem
- Config::SimpleVerbose
- Defined in:
- lib/module_config/items/simpleverbose.rb
Instance Attribute Summary
Attributes inherited from SimpleItem
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(_str, _regex) ⇒ SimpleVerbose
constructor
A new instance of SimpleVerbose.
Methods inherited from SimpleItem
Methods inherited from Item
Constructor Details
#initialize(_str, _regex) ⇒ SimpleVerbose
Returns a new instance of SimpleVerbose.
23 24 25 26 27 28 29 30 31 |
# File 'lib/module_config/items/simpleverbose.rb', line 23 def initialize(_str, _regex) super(_str, _regex) begin @value = Integer(@value) rescue ArgumentError => e raise ConfigWrongFormatException.new(self.class), "Configuration item <#{@name} = #{@value}> has wrong format!" end end |