class Leftovers::Matchers::NodeType
Public Class Methods
new(type_matcher)
click to toggle source
:nocov:
# File lib/leftovers/matchers/node_type.rb, line 10 def initialize(type_matcher) @type_matcher = type_matcher freeze end
Public Instance Methods
===(node)
click to toggle source
# File lib/leftovers/matchers/node_type.rb, line 16 def ===(node) @type_matcher === node.type end