Class: Config::SimpleArchitecture

Inherits:
SimpleItem show all
Defined in:
lib/module_config/items/simplearchitecture.rb

Instance Attribute Summary

Attributes inherited from SimpleItem

#name, #value

Attributes inherited from Item

#priority

Instance Method Summary collapse

Methods inherited from SimpleItem

getRegex, #merge

Methods inherited from Item

#merge, #name, #value

Constructor Details

#initialize(_str, _regex) ⇒ SimpleArchitecture

Returns a new instance of SimpleArchitecture.



24
25
26
27
# File 'lib/module_config/items/simplearchitecture.rb', line 24

def initialize(_str, _regex)
    super(_str, _regex)
    @value = [] unless @value = @value.split(/,\s*/)
end

Instance Method Details



29
30
31
# File 'lib/module_config/items/simplearchitecture.rb', line 29

def print
    puts "    #{@name} = #{@value.join(", ")}\t##{self.class.to_s}"
end