Class: CodeAnalyzer::Nil
- Inherits:
-
Object
- Object
- CodeAnalyzer::Nil
- Defined in:
- lib/code_analyzer/nil.rb
Overview
Fake nil.
Instance Method Summary collapse
-
#array_size ⇒ Object
array_size is 0.
-
#blank? ⇒ Boolean
true.
-
#hash_size ⇒ Object
hash_size is 0.
-
#method_missing(method_sym, *arguments, &block) ⇒ Object
return self.
-
#present? ⇒ Boolean
false.
-
#to_s ⇒ Object
return self for to_s.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_sym, *arguments, &block) ⇒ Object
return self.
31 32 33 |
# File 'lib/code_analyzer/nil.rb', line 31 def method_missing(method_sym, *arguments, &block) self end |
Instance Method Details
#array_size ⇒ Object
array_size is 0.
11 12 13 |
# File 'lib/code_analyzer/nil.rb', line 11 def array_size 0 end |
#blank? ⇒ Boolean
true
26 27 28 |
# File 'lib/code_analyzer/nil.rb', line 26 def blank? true end |
#hash_size ⇒ Object
hash_size is 0.
6 7 8 |
# File 'lib/code_analyzer/nil.rb', line 6 def hash_size 0 end |
#present? ⇒ Boolean
false
21 22 23 |
# File 'lib/code_analyzer/nil.rb', line 21 def present? false end |
#to_s ⇒ Object
return self for to_s.
16 17 18 |
# File 'lib/code_analyzer/nil.rb', line 16 def to_s self end |