Class: Mork::Raw::Alias

Inherits:
Object
  • Object
show all
Defined in:
lib/mork/raw/alias.rb

Overview

A key-value alias pair

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ Alias

Returns a new instance of Alias.



11
12
13
14
# File 'lib/mork/raw/alias.rb', line 11

def initialize(key:, value:)
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



8
9
10
# File 'lib/mork/raw/alias.rb', line 8

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/mork/raw/alias.rb', line 9

def value
  @value
end