Class: Sass::Constant::Operation
- Defined in:
- lib/gems/haml-2.0.4/lib/sass/constant/operation.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(operand1, operand2, operator) ⇒ Operation
constructor
A new instance of Operation.
- #to_s ⇒ Object
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_s ⇒ Object
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 |