Class: Hash

Inherits:
Object show all
Defined in:
lib/rubylog/mixins/hash.rb

Instance Method Summary collapse

Instance Method Details

#rubylog_matches_as_guard?(other) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
5
6
7
# File 'lib/rubylog/mixins/hash.rb', line 2

def rubylog_matches_as_guard? other
  self.each_pair do |k,v|
    return false unless v.rubylog_matches_as_guard? other.send(*k)
  end
  true
end