Fuel plugin to deploy Sensu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ruby_math.rb 218B

12345678
  1. # import all functions from Ruby's Math module
  2. require_relative "../function"
  3. Math.methods(false).each do |method|
  4. Dentaku::AST::Function.register(method, :numeric, ->(*args) {
  5. Math.send(method, *args)
  6. })
  7. end