Class: Float

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.

Returns:



50
51
52
# File 'lib/cog/primitive.rb', line 50

def to_lit
  Cog.active_language.to_float(self) || Cog.active_language.to_double(self)
end