lib/sexpr/matcher/terminal.rb in sexpr-0.5.0 vs lib/sexpr/matcher/terminal.rb in sexpr-0.5.1
- old
+ new
@@ -23,10 +23,10 @@
private
def terminal_match?(term)
case @value
- when Regexp
+ when Regexp, Module
@value === term rescue false
when TrueClass, FalseClass, NilClass
@value == term
end
end
\ No newline at end of file