Class: XML::XXPath::AllElementsStep
- Defined in:
- lib/xml/xxpath/steps.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Step
#creator, inherited, #initialize, #reader
Constructor Details
This class inherits a constructor from XML::XXPath::Step
Class Method Details
.compile(axis, string) ⇒ Object
242 243 244 245 |
# File 'lib/xml/xxpath/steps.rb', line 242 def self.compile axis, string '*'==string or return nil self.new axis end |
Instance Method Details
#create_on(node, create_new) ⇒ Object
251 252 253 254 255 |
# File 'lib/xml/xxpath/steps.rb', line 251 def create_on(node,create_new) newnode = node.elements.add newnode.unspecified = true newnode end |
#matches?(node) ⇒ Boolean
247 248 249 |
# File 'lib/xml/xxpath/steps.rb', line 247 def matches? node node.is_a? REXML::Element end |