Class: Rubyang::Xpath::LocationPath

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyang/xpath.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*location_step_sequence) ⇒ LocationPath

Returns a new instance of LocationPath.



214
215
216
# File 'lib/rubyang/xpath.rb', line 214

def initialize *location_step_sequence
  @location_step_sequence = location_step_sequence
end

Instance Attribute Details

#location_step_sequenceObject (readonly)

Returns the value of attribute location_step_sequence.



213
214
215
# File 'lib/rubyang/xpath.rb', line 213

def location_step_sequence
  @location_step_sequence
end

Instance Method Details

#add(*location_step_sequence) ⇒ Object



217
218
219
220
# File 'lib/rubyang/xpath.rb', line 217

def add *location_step_sequence
  @location_step_sequence.push *location_step_sequence
  self
end