Flowdock
method

calculate

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Scalar
calculate(op, other) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/duration.rb, line 93
        def calculate(op, other)
          if Scalar === other
            Scalar.new(value.public_send(op, other.value))
          elsif Numeric === other
            Scalar.new(value.public_send(op, other))
          else
            raise_type_error(other)
          end
        end
Register or log in to add new notes.