class Aws::Templates::Utils::Parametrized::RecursiveAdapter
Makes parametrized accessible as recursive concept
Attributes
target[R]
Public Class Methods
new(target)
click to toggle source
# File lib/aws/templates/utils/parametrized.rb, line 170 def initialize(target) @target = target end
Public Instance Methods
[](k)
click to toggle source
Index operator
Performs intermediate transformation of value if needed (if value is a lambda) and returns it wrapping into Definition instance with the same context if needed (if value is a map)
# File lib/aws/templates/utils/parametrized.rb, line 160 def [](k) target.parameter_names.include?(k) ? target.send(k) : target.options[k] end
include?(k)
click to toggle source
Check if the key is present in the hash
# File lib/aws/templates/utils/parametrized.rb, line 166 def include?(k) target.parameter_names.include?(k) || target.options.include?(k) end
keys()
click to toggle source
Defined hash keys
# File lib/aws/templates/utils/parametrized.rb, line 150 def keys target.parameter_names.merge(target.options.keys) end