lib/sass/script/value/number.rb in sass-3.3.0.alpha.184 vs lib/sass/script/value/number.rb in sass-3.3.0.alpha.195
- old
+ new
@@ -190,22 +190,21 @@
# The SassScript `==` operation.
#
# @param other [Value] The right-hand side of the operator
# @return [Boolean] Whether this number is equal to the other object
def eq(other)
- return Sass::Script::Value::Bool.new(false) unless other.is_a?(Sass::Script::Value::Number)
+ return Bool::FALSE unless other.is_a?(Sass::Script::Value::Number)
this = self
begin
if unitless?
this = this.coerce(other.numerator_units, other.denominator_units)
else
other = other.coerce(@numerator_units, @denominator_units)
end
rescue Sass::UnitConversionError
- return Sass::Script::Value::Bool.new(false)
+ return Bool::FALSE
end
-
- Sass::Script::Value::Bool.new(this.value == other.value)
+ Bool.new(this.value == other.value)
end
# The SassScript `>` operation.
#
# @param other [Number] The right-hand side of the operator