Class: XPath::XPathBoolean
- Inherits:
-
Object
- Object
- XPath::XPathBoolean
- Includes:
- XPathObject
- Defined in:
- lib/xml/xpath.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.instance ⇒ Object
readonly
Returns the value of attribute instance.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #to_boolean(context) ⇒ Object
-
#to_ruby ⇒ Object
def to_f def true?.
- #to_str ⇒ Object
Methods included from XPathObject
#**, #<, #<=, #>, #>=, #at, #funcall, #predicate, #to_f, #to_number, #to_predicate, #to_string, #true?
Class Attribute Details
.instance ⇒ Object (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_ruby ⇒ Object
def to_f def true?
630 631 632 |
# File 'lib/xml/xpath.rb', line 630 def to_ruby true? end |
#to_str ⇒ Object
623 624 625 |
# File 'lib/xml/xpath.rb', line 623 def to_str true?.to_s end |