class Snmp2mkr::ConfigTypes::TemplatesList
Attributes
value[R]
Public Instance Methods
collect_children()
click to toggle source
# File lib/snmp2mkr/config_types/templates_list.rb, line 15 def collect_children @value end
evaluate(context: binded_context, previous: nil)
click to toggle source
# File lib/snmp2mkr/config_types/templates_list.rb, line 21 def evaluate(context: binded_context, previous: nil) @value.map { |_| _.evaluate(context: context, previous: previous) } end
setup(ary)
click to toggle source
# File lib/snmp2mkr/config_types/templates_list.rb, line 7 def setup(ary) if !ary.kind_of?(Array) || ary.any? { |_| !_.kind_of?(String) } raise TypeError, "#{self.class} must be given an Array<String>" end @value = ary.map { |_| TemplateString.new(_) } end