Class: NilClass
- Inherits:
-
Object
- Object
- NilClass
- Defined in:
- lib/santas_little_helper.rb
Instance Method Summary collapse
-
#to_h ⇒ Object
Humanize.
-
#to_i ⇒ Object
Since in if/else nil is interpreted as false, return same as false.
-
#to_teenager ⇒ Object
A very rude teenager nihilist.
Instance Method Details
#to_h ⇒ Object
Humanize. to_s returns “” as well, this is really to be consistent with other classes.
93 94 95 |
# File 'lib/santas_little_helper.rb', line 93 def to_h "" end |
#to_i ⇒ Object
Since in if/else nil is interpreted as false, return same as false.
88 89 90 |
# File 'lib/santas_little_helper.rb', line 88 def to_i 0 end |
#to_teenager ⇒ Object
A very rude teenager nihilist.
98 99 100 |
# File 'lib/santas_little_helper.rb', line 98 def to_teenager "Zip! Nada! Babkis! Nothing to see here! Get out of my room!" end |