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



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