Class: Object
- Inherits:
- BasicObject
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/irc.rb
Instance Method Summary (collapse)
- 
  
    
      - (Boolean) nil_or_empty? 
    
    
  
  
  
  
  
  
  
  
  
    We extend the Object class with a method that checks if the receiver is nil or empty. 
Instance Method Details
- (Boolean) nil_or_empty?
We extend the Object class with a method that checks if the receiver is nil or empty
| 43 44 45 46 47 | # File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 43 def nil_or_empty? return true unless self return true if self.respond_to? :empty? and self.empty? return false end |