lib/dentaku/ast/functions/round.rb in dentaku-2.0.0 vs lib/dentaku/ast/functions/round.rb in dentaku-2.0.1
- old
+ new
@@ -1,5 +1,5 @@
require_relative '../function'
-Dentaku::AST::Function.register(:round, ->(numeric, places=nil) {
+Dentaku::AST::Function.register(:round, :numeric, ->(numeric, places=nil) {
numeric.round(places || 0)
})