Class: Veto::PrimativeCondition

Inherits:
Condition show all
Defined in:
lib/veto/conditions/primative_condition.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ PrimativeCondition

Returns a new instance of PrimativeCondition.



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

def initialize(object)
  @object = object
end

Instance Method Details

#pass?(*args) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/veto/conditions/primative_condition.rb', line 7

def pass?(*args)
  !!@object
end