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.



99
100
101
102
# File 'lib/ldpath/selectors.rb', line 99

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

Instance Attribute Details

#left ⇒ Object (readonly)

Returns the value of attribute left.



98
99
100
# File 'lib/ldpath/selectors.rb', line 98

def left
  @left
end

#right ⇒ Object (readonly)

Returns the value of attribute right.



98
99
100
# File 'lib/ldpath/selectors.rb', line 98

def right
  @right
end