Class: RDF::N3::Algebra::Str::NotMatches
- Inherits:
-
Matches
- Object
- SPARQL::Algebra::Operator::Binary
- ResourceOperator
- Matches
- RDF::N3::Algebra::Str::NotMatches
- Defined in:
- lib/rdf/n3/algebra/str/not_matches.rb
Overview
The subject string; the object is a regular expression in the perl, python style. It is true iff the string does NOT match the regexp.
Constant Summary collapse
- NAME =
:strNotMatches- URI =
RDF::N3::Str.notMatches
Instance Attribute Summary
Attributes included from Enumerable
Instance Method Summary collapse
-
#apply(text, pattern) ⇒ RDF::Literal::Boolean
trueorfalse.
Methods inherited from Matches
Methods inherited from ResourceOperator
#as_literal, #execute, #input_operand, #resolve, #valid?
Methods included from Builtin
#each, #evaluate, #hash, #input_operand, #rank, #to_uri
Instance Method Details
#apply(text, pattern) ⇒ RDF::Literal::Boolean
Returns true or false.
14 15 16 |
# File 'lib/rdf/n3/algebra/str/not_matches.rb', line 14 def apply(text, pattern) RDF::Literal(super != RDF::Literal::TRUE) end |