Class: XPath::XPathTrueClass

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



649
650
651
# File 'lib/xml/xpath.rb', line 649

def to_f
  1.0
end

#true?Boolean

Returns:

  • (Boolean)


653
654
655
# File 'lib/xml/xpath.rb', line 653

def true?
  true
end