Class: Roma::Mkconfig::Config_status

Inherits:
Object
  • Object
show all
Defined in:
lib/roma/tools/mkconfig.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash, input, store_type = nil) ⇒ Config_status

Returns a new instance of Config_status.



228
229
230
231
232
233
234
235
236
# File 'lib/roma/tools/mkconfig.rb', line 228

def initialize(hash, input, store_type = nil)
  @name = hash["name"]
  @value = input
  if store_type == "Array"
    @value = Array.new
    @value << input
  end
  @print = true
end

Instance Attribute Details

#default_valueObject

Returns the value of attribute default_value.



227
228
229
# File 'lib/roma/tools/mkconfig.rb', line 227

def default_value
  @default_value
end

#nameObject

Returns the value of attribute name.



227
228
229
# File 'lib/roma/tools/mkconfig.rb', line 227

def name
  @name
end

Returns the value of attribute print.



227
228
229
# File 'lib/roma/tools/mkconfig.rb', line 227

def print
  @print
end

#valueObject

Returns the value of attribute value.



227
228
229
# File 'lib/roma/tools/mkconfig.rb', line 227

def value
  @value
end