mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
More advanced operation stuff.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@256 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
8116d203e8
commit
4246a12203
1 changed files with 5 additions and 1 deletions
|
@ -21,9 +21,13 @@ module Sass::Constant
|
||||||
literal2 = @operand2.perform
|
literal2 = @operand2.perform
|
||||||
begin
|
begin
|
||||||
literal1.send(@operator, literal2)
|
literal1.send(@operator, literal2)
|
||||||
|
rescue NoMethodError
|
||||||
|
begin
|
||||||
|
literal2.send(@operator, literal1)
|
||||||
rescue NoMethodError
|
rescue NoMethodError
|
||||||
raise "Undefined operation:\n#{literal1} #{@operator} #{literal2}\n"
|
raise "Undefined operation:\n#{literal1} #{@operator} #{literal2}\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue