Class: XML::XXPath::NameStep
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
- #create_on(node, create_new) ⇒ Object
-
#initialize(axis, name) ⇒ NameStep
constructor
A new instance of NameStep.
- #matches?(node) ⇒ Boolean
Methods inherited from Step
Constructor Details
#initialize(axis, name) ⇒ NameStep
Returns a new instance of NameStep.
331 332 333 334 |
# File 'lib/xml/xxpath/steps.rb', line 331 def initialize(axis,name) super(axis) @name = name end |
Class Method Details
.compile(axis, string) ⇒ Object
327 328 329 |
# File 'lib/xml/xxpath/steps.rb', line 327 def self.compile axis, string self.new axis,string end |
Instance Method Details
#create_on(node, create_new) ⇒ Object
340 341 342 |
# File 'lib/xml/xxpath/steps.rb', line 340 def create_on(node,create_new) node.elements.add @name end |