class Leftovers::Matchers::NodeScalarValue
Public Class Methods
new(matcher)
click to toggle source
:nocov:
# File lib/leftovers/matchers/node_scalar_value.rb, line 10 def initialize(matcher) @matcher = matcher freeze end
Public Instance Methods
===(node)
click to toggle source
# File lib/leftovers/matchers/node_scalar_value.rb, line 16 def ===(node) return false unless node.scalar? @matcher === node.to_scalar_value end