Class: Tapioca::Compilers::DryStruct::DryAstCompiler::Map
- Inherits:
-
Object
- Object
- Tapioca::Compilers::DryStruct::DryAstCompiler::Map
- Defined in:
- lib/tapioca/dsl/compilers/dry_struct.rb
Overview
Represents dry’s map type
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Map
constructor
A new instance of Map.
Constructor Details
#initialize(key, value) ⇒ Map
Returns a new instance of Map.
126 127 128 129 |
# File 'lib/tapioca/dsl/compilers/dry_struct.rb', line 126 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
124 125 126 |
# File 'lib/tapioca/dsl/compilers/dry_struct.rb', line 124 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
124 125 126 |
# File 'lib/tapioca/dsl/compilers/dry_struct.rb', line 124 def value @value end |