lib/sass/script/literal.rb in haml-edge-2.1.41 vs lib/sass/script/literal.rb in haml-edge-2.1.42

- old
+ new

@@ -168,7 +168,10 @@ # @return [Fixnum] The integer value of this literal # @raise [Sass::SyntaxError] if this literal isn't an integer def to_i raise Sass::SyntaxError.new("#{self.inspect} is not an integer.") end + + # @raise [Sass::SyntaxError] if this literal isn't an integer + def assert_int!; to_i; end end end