Class: Jabber::Protocol::ParsedXMLElement::NilParsedXMLElement
- Inherits:
-
Object
- Object
- Jabber::Protocol::ParsedXMLElement::NilParsedXMLElement
- Includes:
- Singleton
- Defined in:
- lib/jabber4r/protocol/parsed_xml_element.rb
Overview
This class is used to return nil element values to prevent errors (and reduce the number of checks.
Instance Method Summary collapse
-
#count ⇒ Object
Return a zero count.
-
#method_missing(methId, *args) ⇒ Object
Override to return nil.
-
#nil? ⇒ Boolean
Evaluate as nil.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(methId, *args) ⇒ Object
Override to return nil
- return
- nil
25 26 27 |
# File 'lib/jabber4r/protocol/parsed_xml_element.rb', line 25 def method_missing(methId, *args) return nil end |
Instance Method Details
#count ⇒ Object
Return a zero count
- return
- Integer
-
0
43 44 45 |
# File 'lib/jabber4r/protocol/parsed_xml_element.rb', line 43 def count 0 end |
#nil? ⇒ Boolean
Evaluate as nil
- return
- Boolean
-
true
34 35 36 |
# File 'lib/jabber4r/protocol/parsed_xml_element.rb', line 34 def nil? return true end |