class ConfigTable::Item
Attributes
default[RW]
description[R]
help_default[RW]
name[R]
Public Class Methods
new(name, template, default, desc)
click to toggle source
# File pkg/statsample-1.4.0/setup.rb, line 318 def initialize(name, template, default, desc) @name = name.freeze @template = template @value = default @default = default @description = desc end
Public Instance Methods
help_opt()
click to toggle source
# File pkg/statsample-1.4.0/setup.rb, line 332 def help_opt "--#{@name}=#{@template}" end
resolve(table)
click to toggle source
# File pkg/statsample-1.4.0/setup.rb, line 344 def resolve(table) @value.gsub(%r<\$([^/]+)>) { table[$1] } end
set(val)
click to toggle source
# File pkg/statsample-1.4.0/setup.rb, line 348 def set(val) @value = check(val) end
value()
click to toggle source
# File pkg/statsample-1.4.0/setup.rb, line 340 def value @value end
value?()
click to toggle source
# File pkg/statsample-1.4.0/setup.rb, line 336 def value? true end