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.



183
184
185
186
187
188
# File 'lib/ldpath/selectors.rb', line 183

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

  super
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



181
182
183
# File 'lib/ldpath/selectors.rb', line 181

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



181
182
183
# File 'lib/ldpath/selectors.rb', line 181

def right
  @right
end