Class: XPath::XPathFalseClass

Inherits:
XPathBoolean show all
Defined in:
lib/xml/xpath.rb

Instance Method Summary collapse

Methods inherited from XPathBoolean

#==, #to_boolean, #to_ruby, #to_str

Methods included from XPathObject

#**, #<, #<=, #==, #>, #>=, #at, #funcall, #predicate, #to_boolean, #to_number, #to_predicate, #to_ruby, #to_str, #to_string

Instance Method Details

#to_fObject



664
665
666
# File 'lib/xml/xpath.rb', line 664

def to_f
  0.0
end

#true?Boolean

Returns:

  • (Boolean)


668
669
670
# File 'lib/xml/xpath.rb', line 668

def true?
  false
end