Class: XPath::XPathBoolean

Inherits:
Object
  • Object
show all
Includes:
XPathObject
Defined in:
lib/xml/xpath.rb

Direct Known Subclasses

XPathFalseClass, XPathTrueClass

Class Attribute Summary collapse

Instance Method Summary collapse

Methods included from XPathObject

#**, #<, #<=, #>, #>=, #at, #funcall, #predicate, #to_f, #to_number, #to_predicate, #to_string, #true?

Class Attribute Details

.instanceObject (readonly)

Returns the value of attribute instance.



619
620
621
# File 'lib/xml/xpath.rb', line 619

def instance
  @instance
end

Instance Method Details

#==(other) ⇒ Object



638
639
640
# File 'lib/xml/xpath.rb', line 638

def ==(other)
  true? == other.true?
end

#to_boolean(context) ⇒ Object



634
635
636
# File 'lib/xml/xpath.rb', line 634

def to_boolean(context)
  self
end

#to_rubyObject

def to_f def true?



630
631
632
# File 'lib/xml/xpath.rb', line 630

def to_ruby
  true?
end

#to_strObject



623
624
625
# File 'lib/xml/xpath.rb', line 623

def to_str
  true?.to_s
end