Class: Purist::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/purist/matcher.rb

Class Method Summary collapse

Class Method Details

.match?(specification, trace_point) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/purist/matcher.rb', line 5

def self.match?(specification, trace_point)
  specification.key? [trace_point.defined_class, trace_point.callee_id]
end