class TrueClass

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 Objective-C
true.to_lit # => 'YES'

# For Java
true.to_lit # => 'true'
# File lib/cog/primitive.rb, line 85
def to_lit
  Cog.active_language.to_boolean(self)
end