Class: TrueClass

Inherits:
Object
  • Object
show all
Defined in:
lib/cog/primitive.rb

Instance Method Summary collapse

Instance Method Details

#to_litString

Returns literal representation in the Cog.active_language.

Examples:

# For Objective-C
true.to_lit # => 'YES'

# For Java
true.to_lit # => 'true'

Returns:



89
90
91
# File 'lib/cog/primitive.rb', line 89

def to_lit
  Cog.active_language.to_boolean(self)
end