Exception: Classy::Yaml::InvalidKeyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/classy/yaml/invalid_key_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ InvalidKeyError

Returns a new instance of InvalidKeyError.



4
5
6
# File 'lib/classy/yaml/invalid_key_error.rb', line 4

def initialize(data)
  @data = data
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/classy/yaml/invalid_key_error.rb', line 8

def message
  "yass called with invalid keys: #{@data}. This error can be raised when calling nested keys on an un-nested root."
end