Class: Any
- Inherits:
-
Object
- Object
- Any
- Defined in:
- lib/any.rb,
lib/any/version.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
-
.==(other) ⇒ Object
Always returns true in a comparison.
-
.===(other) ⇒ Object
Always returns true in a comparison.
-
.to_proc ⇒ Object
Always returns true from a proc.
Class Method Details
.==(other) ⇒ Object
Always returns true in a comparison
11 12 13 |
# File 'lib/any.rb', line 11 def ==(other) true end |
.===(other) ⇒ Object
Always returns true in a comparison
21 22 23 |
# File 'lib/any.rb', line 21 def ===(other) true end |
.to_proc ⇒ Object
Always returns true from a proc
28 29 30 |
# File 'lib/any.rb', line 28 def to_proc proc { true } end |