mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Not all operations are symmetric.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@258 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
99ee33a7bd
commit
0a13b9f3eb
1 changed files with 2 additions and 9 deletions
|
@ -22,15 +22,8 @@ module Sass::Constant
|
|||
begin
|
||||
literal1.send(@operator, literal2)
|
||||
rescue NoMethodError => e
|
||||
raise e unless e.name == @operator
|
||||
|
||||
begin
|
||||
literal2.send(@operator, literal1)
|
||||
rescue NoMethodError => e
|
||||
raise e unless e.name == @operator
|
||||
|
||||
raise "Undefined operation:\n#{literal1} #{@operator} #{literal2}\n"
|
||||
end
|
||||
raise e unless e.name == @operator
|
||||
raise "Undefined operation:\n#{literal1} #{@operator} #{literal2}\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue