Class: XML::XXPath::TextNodesStep
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
305 306 307 308 |
# File 'lib/xml/xxpath/steps.rb', line 305 def self.compile axis, string 'text()' == string or return nil self.new axis end |
Instance Method Details
#create_on(node, create_new) ⇒ Object
314 315 316 |
# File 'lib/xml/xxpath/steps.rb', line 314 def create_on(node,create_new) node.add(REXML::Text.new("")) end |
#matches?(node) ⇒ Boolean
310 311 312 |
# File 'lib/xml/xxpath/steps.rb', line 310 def matches? node node.is_a? REXML::Text end |