Class: Jabber::Protocol::ParsedXMLElement::NilParsedXMLElement

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/jabber4r/protocol.rb

Overview

This class is used to return nil element values to prevent errors (and reduce the number of checks.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(methId, *args) ⇒ Object

Override to return nil

return
nil


1028
1029
1030
# File 'lib/jabber4r/protocol.rb', line 1028

def method_missing(methId, *args)
  return nil
end

Instance Method Details

#countObject

Return a zero count

return
Integer

0



1046
1047
1048
# File 'lib/jabber4r/protocol.rb', line 1046

def count
  0
end

#nil?Boolean

Evaluate as nil

return
Boolean

true

Returns:

  • (Boolean)


1037
1038
1039
# File 'lib/jabber4r/protocol.rb', line 1037

def nil?
  return true
end