Class: Conditions::BaseCondition

Inherits:
Object
  • Object
show all
Defined in:
lib/conditions.rb

Overview

Abstract class from which all conditions inherit

Instance Method Summary collapse

Constructor Details

#initialize(predicate) ⇒ BaseCondition

Returns a new instance of BaseCondition.

Parameters:

  • predicate (Any)

    A predicate value which will be compared against input values



13
14
15
# File 'lib/conditions.rb', line 13

def initialize(predicate)
  @predicate = predicate
end

Instance Method Details

#apply(_) ⇒ Object



17
# File 'lib/conditions.rb', line 17

def apply(_) true; end