Class: Aws::Templates::Utils::Parametrized::Nested
Overview
Constant Summary
Inheritable::ClassMethods::DEFAULT_MODULE
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Dependent
#depends_on
#_merge_class_scope, #class_scope, #included, #instance_scope
#inspect, #to_s
Methods included from Guarded
#guarded_get
Instance Attribute Details
Returns the value of attribute options.
21
22
23
|
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 21
def options
@options
end
|
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
|
23
24
25
|
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 23
def self.getter
as_is
end
|
38
39
40
|
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 38
def self.inspect
to_s
end
|
42
43
44
|
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 42
def self.scope
::Object
end
|
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
#dependencies ⇒ Object
60
61
62
|
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 60
def dependencies
@dependencies ||= Set.new
end
|
#dependency? ⇒ Boolean
50
51
52
|
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 50
def dependency?
true
end
|
54
55
56
|
# File 'lib/aws/templates/utils/parametrized/nested.rb', line 54
def root
parent.root
end
|