Class: Config::ComplexLibraryFactory
- Inherits:
-
ItemFactory
- Object
- ItemFactory
- Config::ComplexLibraryFactory
- Defined in:
- lib/module_config/items/complexlibrary.rb
Constant Summary collapse
- @@nameregex =
/\w*Librar\w*/
- @@valueregex =
/(\s*.*[;]\s*)*(\s*.*[;]?\s*)?/
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/complexlibrary.rb', line 16 def ComplexLibraryFactory.create(_str) ComplexLibrary.new(_str, ComplexItem.getRegex(@@nameregex, @@valueregex)) end |
.match(_str) ⇒ Object
11 12 13 14 |
# File 'lib/module_config/items/complexlibrary.rb', line 11 def ComplexLibraryFactory.match(_str) _str.sub!(ComplexItem.getRegex(@@nameregex, @@valueregex), '') return $& end |