Class: Sass::Constant::String
- Defined in:
- lib/gems/haml-2.0.4/lib/sass/constant/string.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Literal
Literal::COLOR, Literal::NUMBER
Instance Attribute Summary
Attributes inherited from Literal
Instance Method Summary collapse
Methods inherited from Literal
#concat, #initialize, parse, #perform
Constructor Details
This class inherits a constructor from Sass::Constant::Literal
Instance Method Details
#funcall(other) ⇒ Object
14 15 16 |
# File 'lib/gems/haml-2.0.4/lib/sass/constant/string.rb', line 14 def funcall(other) Sass::Constant::String.from_value("#{self.to_s}(#{other.to_s})") end |
#parse(value) ⇒ Object
6 7 8 |
# File 'lib/gems/haml-2.0.4/lib/sass/constant/string.rb', line 6 def parse(value) @value = value end |
#plus(other) ⇒ Object
10 11 12 |
# File 'lib/gems/haml-2.0.4/lib/sass/constant/string.rb', line 10 def plus(other) Sass::Constant::String.from_value(self.to_s + other.to_s) end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/gems/haml-2.0.4/lib/sass/constant/string.rb', line 18 def to_s @value end |