Class: TOML::Key

Inherits:
Object show all
Defined in:
lib/toml/key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ Key

Returns a new instance of Key.



5
6
7
8
# File 'lib/toml/key.rb', line 5

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/toml/key.rb', line 3

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/toml/key.rb', line 3

def value
  @value
end