Class: Mork::Raw::Alias
- Inherits:
-
Object
- Object
- Mork::Raw::Alias
- Defined in:
- lib/mork/raw/alias.rb
Overview
A key-value alias pair
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:) ⇒ Alias
constructor
A new instance of Alias.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/mork/raw/alias.rb', line 8 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/mork/raw/alias.rb', line 9 def value @value end |