mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
22 lines
392 B
Ruby
22 lines
392 B
Ruby
require 'sass/constant/literal'
|
|
|
|
module Sass::Constant # :nodoc:
|
|
class String < Literal # :nodoc:
|
|
|
|
def parse(value)
|
|
@value = value
|
|
end
|
|
|
|
def plus(other)
|
|
Sass::Constant::String.from_value(self.to_s + other.to_s)
|
|
end
|
|
|
|
def funcall(other)
|
|
Sass::Constant::String.from_value("#{self.to_s}(#{other.to_s})")
|
|
end
|
|
|
|
def to_s
|
|
@value
|
|
end
|
|
end
|
|
end
|