summaryrefslogtreecommitdiff
path: root/deployment_scripts/puppet/files/embedded/lib/ruby/gems/2.3.0/gems/dentaku-2.0.9/lib/dentaku/ast/functions/round.rb
blob: 95c329a878e378ee592e04747bddd576a1107e64 (plain)
1
2
3
4
5
require_relative '../function'

Dentaku::AST::Function.register(:round, :numeric, ->(numeric, places=nil) {
  numeric.round(places || 0)
})