Class: Ldpath::IsTest
- Inherits:
-
TestSelector
- Object
- Selector
- TestSelector
- Ldpath::IsTest
- Defined in:
- lib/ldpath/tests.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Attributes inherited from TestSelector
Instance Method Summary collapse
- #evaluate(program, uri, context) ⇒ Object
-
#initialize(left, right) ⇒ IsTest
constructor
A new instance of IsTest.
Methods inherited from Selector
Constructor Details
#initialize(left, right) ⇒ IsTest
Returns a new instance of IsTest.
88 89 90 91 |
# File 'lib/ldpath/tests.rb', line 88 def initialize(left, right) @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
86 87 88 |
# File 'lib/ldpath/tests.rb', line 86 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
86 87 88 |
# File 'lib/ldpath/tests.rb', line 86 def right @right end |
Instance Method Details
#evaluate(program, uri, context) ⇒ Object
93 94 95 |
# File 'lib/ldpath/tests.rb', line 93 def evaluate(program, uri, context) left.evaluate(program, uri, context).include?(right) end |