Class: YamlProperties::Diff

Inherits:
Object
  • Object
show all
Defined in:
lib/yaml_properties/diff.rb

Instance Method Summary collapse

Constructor Details

#initialize(a, b) ⇒ Diff

Returns a new instance of Diff.



4
5
6
7
8
9
# File 'lib/yaml_properties/diff.rb', line 4

def initialize a, b
  @hash_a, @hash_b = read(a, b)
  unless same?
    raise ArgumentError.new(error_message)
  end
end