Method: Symbol#default_lit

Defined in:
lib/cog/primitive.rb

#default_litString

Returns assuming this symbol represents a cog primitive type, returns the literal representation of the default value for that type.

Examples:

# For Objective-C
:string.default_lit # => '@""'

Returns:

  • (String)

    assuming this symbol represents a cog primitive type, returns the literal representation of the default value for that type



20
21
22
# File 'lib/cog/primitive.rb', line 20

def default_lit
  Cog.active_language.default_lit_for(self)
end