1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/sass/constant/string.rb

23 lines
392 B
Ruby
Raw Normal View History

require 'sass/constant/literal'
module Sass::Constant # :nodoc:
class String < Literal # :nodoc:
2008-04-07 23:09:17 -07:00
def parse(value)
@value = value
end
2008-04-07 23:09:17 -07:00
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
2008-04-07 23:09:17 -07:00
def to_s
@value
end
end
end