class Patm::Pattern::Or
Public Class Methods
new(pats)
click to toggle source
Calls superclass method
Patm::Pattern::LogicalOp::new
# File lib/patm.rb, line 476 def initialize(pats) super('OR', pats, '||') end
Public Instance Methods
execute(mmatch, obj)
click to toggle source
# File lib/patm.rb, line 479 def execute(mmatch, obj) @pats.any? do|pat| pat.execute(mmatch, obj) end end