lib/danica/operator/chained.rb in danica-2.7.4 vs lib/danica/operator/chained.rb in danica-2.7.5
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Danica
class Operator
class Chained < Operator
def variables=(vars)
@variables = vars.map { |v| wrap_value(v) }
@@ -44,13 +46,12 @@
parcel.to(*args)
end
end
def chain(numbers)
- numbers.inject do |a,b|
- chain_operation(a,b)
+ numbers.inject do |a, b|
+ chain_operation(a, b)
end.to_f
end
end
end
end
-