Class: Aws::Templates::Utils::Default::Definition::Scalar
- Inherits:
-
Aws::Templates::Utils::Default::Definition
- Object
- Aws::Templates::Utils::Default::Definition
- Aws::Templates::Utils::Default::Definition::Scalar
- Defined in:
- lib/aws/templates/utils/default.rb
Overview
Scalar definition
Scalar definition overrides everything before it and can be overriden by anything after it.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #for(_) ⇒ Object
-
#initialize(value) ⇒ Scalar
constructor
A new instance of Scalar.
- #merge(b) ⇒ Object
- #override? ⇒ Boolean
Methods inherited from Aws::Templates::Utils::Default::Definition
Constructor Details
#initialize(value) ⇒ Scalar
Returns a new instance of Scalar.
73 74 75 |
# File 'lib/aws/templates/utils/default.rb', line 73 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
71 72 73 |
# File 'lib/aws/templates/utils/default.rb', line 71 def value @value end |
Instance Method Details
#for(_) ⇒ Object
77 78 79 |
# File 'lib/aws/templates/utils/default.rb', line 77 def for(_) value end |
#merge(b) ⇒ Object
81 82 83 |
# File 'lib/aws/templates/utils/default.rb', line 81 def merge(b) b.to_definition end |
#override? ⇒ Boolean
85 86 87 |
# File 'lib/aws/templates/utils/default.rb', line 85 def override? true end |