Class: Config::SimpleSimulateRunFactory
Constant Summary
collapse
- @@nameregex =
/SimulateRun/
- @@valueregex =
/\d+[ ](ms|us|ns|ps)/
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/simplesimulaterun.rb', line 17
def SimpleSimulateRunFactory.create(_str)
SimpleSimulateRun.new(_str, SimpleItem.getRegex(@@nameregex, @@valueregex))
end
|
.match(_str) ⇒ Object
12
13
14
15
|
# File 'lib/module_config/items/simplesimulaterun.rb', line 12
def SimpleSimulateRunFactory.match(_str)
_str.sub!(SimpleItem.getRegex(@@nameregex, @@valueregex), '')
return $&
end
|