Class: Aws::Templates::Utils::Parametrized::Nested

Inherits:
Object
  • Object
show all
Includes:
Default, Dependent, Aws::Templates::Utils::Parametrized
Defined in:
lib/aws/templates/utils/parametrized/nested.rb,
lib/aws/templates/utils/parametrized/transformations.rb

Overview

:nodoc:

Constant Summary

Constants included from Inheritable::ClassMethods

Inheritable::ClassMethods::DEFAULT_MODULE

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Dependent

#depends_on

Methods included from Inheritable::ClassMethods

#_merge_class_scope, #class_scope, #included, #instance_scope

Methods included from Inspectable

#inspect, #to_s

Methods included from Guarded

#guarded_get

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



21
22
23
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 21

def options
  @options
end

#parentObject (readonly)

Returns the value of attribute parent.



58
59
60
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 58

def parent
  @parent
end

Class Method Details

.create_class(scope) ⇒ Object



27
28
29
30
31
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 27

def self.create_class(scope)
  klass = ::Class.new(self)
  klass.singleton_class.send(:define_method, :scope) { scope }
  klass
end

.getterObject



23
24
25
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 23

def self.getter
  as_is
end

.inspectObject



38
39
40
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 38

def self.inspect
  to_s
end

.scopeObject



42
43
44
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 42

def self.scope
  ::Object
end

.to_sObject



46
47
48
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 46

def self.to_s
  "<Nested object definition in #{scope}>"
end

.with(mod) ⇒ Object



33
34
35
36
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 33

def self.with(mod)
  include mod
  self
end

Instance Method Details

#dependenciesObject



60
61
62
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 60

def dependencies
  @dependencies ||= Set.new
end

#dependency?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 50

def dependency?
  true
end

#rootObject



54
55
56
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 54

def root
  parent.root
end