Class: Ldpath::NotTest
- Inherits:
-
TestSelector
- Object
- Selector
- TestSelector
- Ldpath::NotTest
- Defined in:
- lib/ldpath/tests.rb
Instance Attribute Summary collapse
-
#delegate ⇒ Object
readonly
Returns the value of attribute delegate.
Attributes inherited from TestSelector
Instance Method Summary collapse
- #evaluate(program, uri, context) ⇒ Object
-
#initialize(delegate) ⇒ NotTest
constructor
A new instance of NotTest.
Methods inherited from Selector
Constructor Details
#initialize(delegate) ⇒ NotTest
Returns a new instance of NotTest.
52 53 54 |
# File 'lib/ldpath/tests.rb', line 52 def initialize(delegate) @delegate = delegate end |
Instance Attribute Details
#delegate ⇒ Object (readonly)
Returns the value of attribute delegate.
50 51 52 |
# File 'lib/ldpath/tests.rb', line 50 def delegate @delegate end |
Instance Method Details
#evaluate(program, uri, context) ⇒ Object
56 57 58 |
# File 'lib/ldpath/tests.rb', line 56 def evaluate(program, uri, context) !enum_wrap(delegate.evaluate(program, uri, context)).any? { |x| x } end |