Class: NilClass

Inherits:
Object
  • Object
show all
Includes:
NestedText::ToNTMixin
Defined in:
lib/nestedtext/core_ext.rb

Overview

Extended with NestedText support.

Class Method Summary collapse

Instance Method Summary collapse

Methods included from NestedText::ToNTMixin

#to_nt

Class Method Details

.nt_create(_data) ⇒ Object

Adds support for encoding and decoding nil.



19
# File 'lib/nestedtext/core_ext.rb', line 19

def self.nt_create(_data) = nil

Instance Method Details

#encode_nt_withObject

Adds support for encoding and decoding nil.



22
# File 'lib/nestedtext/core_ext.rb', line 22

def encode_nt_with = ''