Class: Any

Inherits:
Object
  • Object
show all
Defined in:
lib/any.rb,
lib/any/version.rb

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.==(other) ⇒ Object

Always returns true in a comparison

Parameters:

  • other (Any)

    Any other type

Returns:

  • true



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

def ==(other)
  true
end

.===(other) ⇒ Object

Always returns true in a comparison

Parameters:

  • other (Any)

    Any other type

Returns:

  • true



21
22
23
# File 'lib/any.rb', line 21

def ===(other)
  true
end

.to_procObject

Always returns true from a proc



28
29
30
# File 'lib/any.rb', line 28

def to_proc
  proc { true }
end