Silence a warning in autocompile mode.

This commit is contained in:
Chris Eppstein 2010-01-23 23:05:24 -08:00
parent 3e248176aa
commit bcf6c74b7e

View File

@ -142,6 +142,7 @@ module Sass
end end
end end
class Operation < Node class Operation < Node
unless defined? OPERATORS_TO_SASS
OPERATORS_TO_SASS = { OPERATORS_TO_SASS = {
:plus => '+', :plus => '+',
:minus => '-', :minus => '-',
@ -154,6 +155,7 @@ module Sass
:or => 'or', :or => 'or',
:and => 'and' :and => 'and'
} }
end
def to_sass def to_sass
"#{operand_to_sass(@operand1)} #{OPERATORS_TO_SASS[@operator]} #{operand_to_sass(@operand2)}" "#{operand_to_sass(@operand1)} #{OPERATORS_TO_SASS[@operator]} #{operand_to_sass(@operand2)}"
end end