Class: Ldpath::CompoundSelector

Inherits:
Selector
  • Object
show all
Defined in:
lib/ldpath/selectors.rb

Direct Known Subclasses

IntersectionSelector, PathSelector, UnionSelector

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Selector

#evaluate, #loading

Constructor Details

#initialize(left, right) ⇒ CompoundSelector

Returns a new instance of CompoundSelector.



161
162
163
164
# File 'lib/ldpath/selectors.rb', line 161

def initialize(left, right)
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



160
161
162
# File 'lib/ldpath/selectors.rb', line 160

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



160
161
162
# File 'lib/ldpath/selectors.rb', line 160

def right
  @right
end