Module: ValuesMatch
- Included in:
- Polonium::Element, Polonium::Page
- Defined in:
- lib/polonium/values_match.rb
Instance Method Summary collapse
Instance Method Details
#values_match?(actual, expected) ⇒ Boolean
2 3 4 5 6 7 8 |
# File 'lib/polonium/values_match.rb', line 2 def values_match?(actual, expected) if expected.is_a? Regexp (actual =~ expected) ? true : false else expected == actual end end |