Module: DeeperHash
- Defined in:
- lib/deeper_hash.rb,
lib/deeper_hash/diff.rb,
lib/deeper_hash/meta.rb,
lib/deeper_hash/version.rb,
lib/deeper_hash/color_diff.rb
Defined Under Namespace
Classes: ColorDiff, Diff, Meta
Constant Summary
collapse
- VERSION =
"0.1.1"
Instance Method Summary
collapse
Instance Method Details
#deep_set(value, *keys) ⇒ Object
31
32
33
|
# File 'lib/deeper_hash.rb', line 31
def deep_set(value, *keys)
Meta.set(self, value, keys)
end
|
#diff(other_hash) ⇒ Object
35
36
37
|
# File 'lib/deeper_hash.rb', line 35
def diff(other_hash)
Diff.new(self, other_hash).diff
end
|
#draw_diff(other_hash, styles = {}) ⇒ Object
39
40
41
|
# File 'lib/deeper_hash.rb', line 39
def draw_diff(other_hash, styles = {})
ColorDiff.new(self, other_hash).draw(styles)
end
|