Class: YamlProperties::Diff
- Inherits:
-
Object
- Object
- YamlProperties::Diff
- Defined in:
- lib/yaml_properties/diff.rb
Instance Method Summary collapse
-
#initialize(a, b) ⇒ Diff
constructor
A new instance of Diff.
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() end end |