Class: Config::SimpleBoolFactory
- Inherits:
-
ItemFactory
- Object
- ItemFactory
- Config::SimpleBoolFactory
- Defined in:
- lib/module_config/items/simplebool.rb
Constant Summary collapse
- @@nameregex =
/SimulateConsole|CompileBuildAll/- @@valueregex =
/true|false/
Class Method Summary collapse
Methods inherited from ItemFactory
factories, getItemFor, inherited, load, priority
Class Method Details
.create(_str) ⇒ Object
16 17 18 |
# File 'lib/module_config/items/simplebool.rb', line 16 def SimpleBoolFactory.create(_str) SimpleBool.new(_str, SimpleItem.getRegex(@@nameregex, @@valueregex)) end |
.match(_str) ⇒ Object
11 12 13 14 |
# File 'lib/module_config/items/simplebool.rb', line 11 def SimpleBoolFactory.match(_str) _str.sub!(SimpleItem.getRegex(@@nameregex, @@valueregex), '') return $& end |