Class: Config::SimpelPostLayoutSimSDFFactory

Inherits:
ItemFactory
  • Object
show all
Defined in:
lib/module_config/items/simplepostlayoutsdf.rb

Constant Summary collapse

@@nameregex =
/PostLayoutSimSDF/
@@valueregex =
/max|min/

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/simplepostlayoutsdf.rb', line 16

def SimpelPostLayoutSimSDFFactory.create(_str)
    SimpelPostLayoutSimSDF.new(_str, SimpleItem.getRegex(@@nameregex, @@valueregex))
end

.match(_str) ⇒ Object



11
12
13
14
# File 'lib/module_config/items/simplepostlayoutsdf.rb', line 11

def SimpelPostLayoutSimSDFFactory.match(_str)
    _str.sub!(SimpleItem.getRegex(@@nameregex, @@valueregex), '')
    return $&
end