Class: Config::SimpleArchitectureFactory
Constant Summary
collapse
- @@nameregex =
/\w*Architecture[s]?/
- @@valueregex =
/((\s*\w+\s*[,])*\s*\w+)*/
Class Method Summary
collapse
Methods inherited from ItemFactory
factories, getItemFor, inherited, load, priority
Class Method Details
.create(_str) ⇒ Object
17
18
19
|
# File 'lib/module_config/items/simplearchitecture.rb', line 17
def SimpleArchitectureFactory.create(_str)
SimpleArchitecture.new(_str, SimpleItem.getRegex(@@nameregex, @@valueregex))
end
|
.match(_str) ⇒ Object
12
13
14
15
|
# File 'lib/module_config/items/simplearchitecture.rb', line 12
def SimpleArchitectureFactory.match(_str)
_str.sub!(SimpleItem.getRegex(@@nameregex, @@valueregex), '')
return $&
end
|