Class: Ldpath::PropertySelector
- Defined in:
- lib/ldpath/selectors.rb
Instance Attribute Summary collapse
-
#property ⇒ Object
readonly
Returns the value of attribute property.
Instance Method Summary collapse
- #evaluate_one(uri, context) ⇒ Object
-
#initialize(property) ⇒ PropertySelector
constructor
A new instance of PropertySelector.
Methods inherited from Selector
Constructor Details
#initialize(property) ⇒ PropertySelector
80 81 82 |
# File 'lib/ldpath/selectors.rb', line 80 def initialize(property) @property = property end |
Instance Attribute Details
#property ⇒ Object (readonly)
Returns the value of attribute property.
79 80 81 |
# File 'lib/ldpath/selectors.rb', line 79 def property @property end |
Instance Method Details
#evaluate_one(uri, context) ⇒ Object
84 85 86 |
# File 'lib/ldpath/selectors.rb', line 84 def evaluate_one(uri, context) context.query([uri, property, nil]).lazy.map(&:object) end |