Class: Axiom::Function::Predicate::Inclusion
- Inherits:
-
Axiom::Function::Predicate
- Object
- Axiom::Function
- Axiom::Function::Predicate
- Axiom::Function::Predicate::Inclusion
- Includes:
- Enumerable
- Defined in:
- lib/axiom/function/predicate/inclusion.rb
Overview
A predicate representing an inclusion test
Defined Under Namespace
Modules: Methods
Instance Attribute Summary
Attributes included from Operation::Binary
Class Method Summary collapse
-
.call(left, right) ⇒ Boolean
Test an enumerable to see if a value is included.
-
.inverse ⇒ Class<Exclusion>
Return the inverse predicate class.
Methods included from Enumerable
Methods inherited from Axiom::Function::Predicate
Methods included from Binary::Invertible
Methods included from Binary
Methods included from Operation::Binary
Methods included from Connective::Conjunction::Methods
Methods included from Aliasable
Methods included from Connective::Disjunction::Methods
Methods included from Connective::Negation::Methods
Methods inherited from Axiom::Function
extract_value, rename_attributes, #type
Methods included from Visitable
Class Method Details
.call(left, right) ⇒ Boolean
Test an enumerable to see if a value is included
24 25 26 |
# File 'lib/axiom/function/predicate/inclusion.rb', line 24 def self.call(left, right) right.public_send(Enumerable.compare_method(right), left) end |