class Aws::Templates::Utils::Parametrized::Nested

Parametrized wrapper

Wraps hash or object into “parametrized” instance. Used for nested parameter definitions.

Attributes

options[R]
parent[R]

Public Class Methods

create_class(scope) click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 25
def self.create_class(scope)
  klass = ::Class.new(self)
  klass.singleton_class.send(:define_method, :scope) { scope }
  klass
end
getter() click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 21
def self.getter
  Parametrized::Getter::AsIs.instance
end
inspect() click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 36
def self.inspect
  to_s
end
new(parent, obj) click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 64
def initialize(parent, obj)
  @parent = parent
  depends_on(obj) if obj.dependency?
  @options = Utils::Options.new(defaults, obj.to_recursive)
end
scope() click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 40
def self.scope
  ::Object
end
to_s() click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 44
def self.to_s
  "<Nested object definition in #{scope}>"
end
with(mod) click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 31
def self.with(mod)
  include mod
  self
end

Public Instance Methods

dependencies() click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 58
def dependencies
  @dependencies ||= ::Set.new
end
dependency?() click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 48
def dependency?
  true
end
root() click to toggle source
# File lib/aws/templates/utils/parametrized/nested.rb, line 52
def root
  parent.root
end