Class: Yargi::FalsePredicate

Inherits:
Predicate show all
Defined in:
lib/yargi/predicate.rb

Overview

Decorates false as a predicate

Constant Summary

Constants inherited from Predicate

Predicate::ALL, Predicate::NONE

Instance Method Summary collapse

Methods inherited from Predicate

#&, #not, to_predicate, #|

Instance Method Details

#===(elm) ⇒ Object

Always returns false



82
83
84
# File 'lib/yargi/predicate.rb', line 82

def ===(elm)
  false
end

#inspectObject

Returns ‘false’



87
88
89
# File 'lib/yargi/predicate.rb', line 87

def inspect
  "false"
end