Class: Fear::PartialFunction::Any Private

Inherits:
Object
  • Object
show all
Defined in:
lib/fear/partial_function/any.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Any is an object which is always truthy

Class Method Summary collapse

Class Method Details

.==(_other) ⇒ true

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


17
18
19
# File 'lib/fear/partial_function/any.rb', line 17

def ==(_other)
  true
end

.===(_other) ⇒ true

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


11
12
13
# File 'lib/fear/partial_function/any.rb', line 11

def ===(_other)
  true
end

.to_procProc

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


22
23
24
# File 'lib/fear/partial_function/any.rb', line 22

def to_proc
  proc { true }
end