Class: Tapioca::Compilers::DryStruct::DryAstCompiler::Map

Inherits:
Object
  • Object
show all
Defined in:
lib/tapioca/dsl/compilers/dry_struct.rb

Overview

Represents dry’s map type

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



124
125
126
# File 'lib/tapioca/dsl/compilers/dry_struct.rb', line 124

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



124
125
126
# File 'lib/tapioca/dsl/compilers/dry_struct.rb', line 124

def value
  @value
end