Class: NilClass
- Inherits:
-
Object
- Object
- NilClass
- Defined in:
- lib/nil.rb
Instance Method Summary collapse
-
#to_j(indent = 0) ⇒ String
Json for the nil, which is “null”.
Instance Method Details
#to_j(indent = 0) ⇒ String
Returns Json for the nil, which is “null”.
3 4 5 |
# File 'lib/nil.rb', line 3 def to_j(indent = 0) " "*indent + "null" end |