1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-02-25 10:42:03 +00:00
2020-06-03 08:31:58 -06:00

14 lines
164 B
Ruby
Executable File

#!/usr/bin/env ruby
#
# Run a quick calculation with Ruby
#
# Usage: calc "1/2"
class Integer
def /(other)
fdiv(other)
end
end
puts eval(ARGV.join(""))