Class: Veto::PrimativeCondition
- Defined in:
- lib/veto/conditions/primative_condition.rb
Instance Method Summary collapse
-
#initialize(object) ⇒ PrimativeCondition
constructor
A new instance of PrimativeCondition.
- #pass?(*args) ⇒ Boolean
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
7 8 9 |
# File 'lib/veto/conditions/primative_condition.rb', line 7 def pass?(*args) !!@object end |