Class: YamldiffError

Inherits:
Object
  • Object
show all
Defined in:
lib/yamldiff/yamldiff_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, context) ⇒ YamldiffError

Returns a new instance of YamldiffError.



3
4
5
6
# File 'lib/yamldiff/yamldiff_error.rb', line 3

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

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



2
3
4
# File 'lib/yamldiff/yamldiff_error.rb', line 2

def context
  @context
end

#keyObject (readonly)

Returns the value of attribute key.



2
3
4
# File 'lib/yamldiff/yamldiff_error.rb', line 2

def key
  @key
end