Class: NilClass
- Inherits:
-
Object
- Object
- NilClass
- Defined in:
- lib/n/std.rb
Instance Method Summary collapse
-
#empty? ⇒ Boolean
quite usefull for error tolerant apps.
- #to_f ⇒ Object
-
#to_i ⇒ Object
to_i, to_s are handled by default.
Instance Method Details
#empty? ⇒ Boolean
quite usefull for error tolerant apps. a bit dangerous though.
27 28 29 |
# File 'lib/n/std.rb', line 27 def empty? return true end |
#to_f ⇒ Object
20 21 22 |
# File 'lib/n/std.rb', line 20 def to_f return 0.0 end |
#to_i ⇒ Object
to_i, to_s are handled by default.
16 17 18 |
# File 'lib/n/std.rb', line 16 def to_i return nil end |