Class: TomlRB::ValueOverwriteError
Overview
Overwrite error
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ ValueOverwriteError
constructor
A new instance of ValueOverwriteError.
Constructor Details
#initialize(key) ⇒ ValueOverwriteError
Returns a new instance of ValueOverwriteError.
12 13 14 15 |
# File 'lib/toml-rb/errors.rb', line 12 def initialize(key) @key = key super "Key #{key.inspect} is defined more than once" end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
10 11 12 |
# File 'lib/toml-rb/errors.rb', line 10 def key @key end |