Class: Sass::Constant::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/haml-2.0.4/lib/sass/constant/operation.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(operand1, operand2, operator) ⇒ Operation

Returns a new instance of Operation.



7
8
9
10
11
# File 'lib/gems/haml-2.0.4/lib/sass/constant/operation.rb', line 7

def initialize(operand1, operand2, operator)
  @operand1 = operand1
  @operand2 = operand2
  @operator = operator
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/gems/haml-2.0.4/lib/sass/constant/operation.rb', line 13

def to_s
  self.perform.to_s
end