Class: NilClass
Instance Method Summary collapse
- #empty? ⇒ Boolean (also: #blank?)
- #include?(o) ⇒ Boolean
- #length ⇒ Object
- #not_empty? ⇒ Boolean (also: #not_blank?)
- #not_nil? ⇒ Boolean
Instance Method Details
#empty? ⇒ Boolean Also known as: blank?
10 11 12 |
# File 'lib/extensions/nil.rb', line 10 def empty? true end |
#include?(o) ⇒ Boolean
6 7 8 |
# File 'lib/extensions/nil.rb', line 6 def include?(o) false end |
#length ⇒ Object
18 19 20 |
# File 'lib/extensions/nil.rb', line 18 def length 0 end |
#not_empty? ⇒ Boolean Also known as: not_blank?
14 15 16 |
# File 'lib/extensions/nil.rb', line 14 def not_empty? false end |
#not_nil? ⇒ Boolean
2 3 4 |
# File 'lib/extensions/nil.rb', line 2 def not_nil? false end |