module Daitai::Abs
Public Instance Methods
abs()
click to toggle source
# File lib/daitai/functions/abs.rb, line 5 def abs ->(x) { x < 0 ? -x : x } # rubocop:disable Style/NumericPredicate end
# File lib/daitai/functions/abs.rb, line 5 def abs ->(x) { x < 0 ? -x : x } # rubocop:disable Style/NumericPredicate end