class NilClass

Public Instance Methods

to_lit() click to toggle source

@return [String] literal representation in the {Cog::Config::LanguageConfig#active_language Cog.active_language} @example

# For C
nil.to_lit # => 'NULL'

# For C#
nil.to_lit # => 'null'
# File lib/cog/primitive.rb, line 111
def to_lit
  Cog.active_language.to_null(self)
end