# File lib/backports/1.9.2/stdlib/matrix.rb, line 1279 def coerce(other) case other when Numeric return Scalar.new(other), self else raise TypeError, "#{self.class} can't be coerced into #{other.class}" end end