Class: Rubyang::Xpath::LocationPath
- Inherits:
-
Object
- Object
- Rubyang::Xpath::LocationPath
- Defined in:
- lib/rubyang/xpath.rb
Instance Attribute Summary collapse
-
#location_step_sequence ⇒ Object
readonly
Returns the value of attribute location_step_sequence.
Instance Method Summary collapse
- #add(*location_step_sequence) ⇒ Object
-
#initialize(*location_step_sequence) ⇒ LocationPath
constructor
A new instance of LocationPath.
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_sequence ⇒ Object (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 |