class Patm::Pattern::And
Public Class Methods
new(pats)
click to toggle source
Calls superclass method
Patm::Pattern::LogicalOp::new
# File lib/patm.rb, line 487 def initialize(pats) super('AND', pats, '&&') end
Public Instance Methods
execute(mmatch, obj)
click to toggle source
# File lib/patm.rb, line 490 def execute(mmatch, obj) @pats.all? do|pat| pat.execute(mmatch, obj) end end