Class: Veto::UnlessConditions

Inherits:
Conditions show all
Defined in:
lib/veto/conditions/unless_conditions.rb

Instance Method Summary collapse

Methods inherited from Conditions

#initialize

Constructor Details

This class inherits a constructor from Veto::Conditions

Instance Method Details

#pass?(*args) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
6
# File 'lib/veto/conditions/unless_conditions.rb', line 3

def pass?(*args)
  conditions.each {|c| return(false) if c.pass?(*args) } 
  true
end