Module: Axiom::Function::Predicate::Inclusion::Methods

Included in:
Attribute::Object
Defined in:
lib/axiom/function/predicate/inclusion.rb

Instance Method Summary collapse

Instance Method Details

#include(other) ⇒ Inclusion

Compare the left to see if it is included in the right

Examples:

inclusion = attribute.include([1, 2, 3])

Parameters:

Returns:



52
53
54
# File 'lib/axiom/function/predicate/inclusion.rb', line 52

def include(other)
  Inclusion.new(self, other)
end