Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/lunar_cheese/dump.rb

Instance Method Summary collapse

Instance Method Details

#to_luaString

Dump the float to a format used by Don’t Starve table dumps. This will simply call #to_s

Examples:

Dumping float

puts 21.5.to_lua
=> '21.5'

Returns:

  • (String)

    Dumped version of the float.



45
46
47
# File 'lib/lunar_cheese/dump.rb', line 45

def to_lua
  to_s
end