2006-12-23 22:32:05 +00:00
|
|
|
require 'sass/constant/literal'
|
|
|
|
|
2007-03-01 05:52:47 +00:00
|
|
|
module Sass::Constant # :nodoc:
|
|
|
|
class String < Literal # :nodoc:
|
2008-04-07 23:09:17 -07:00
|
|
|
|
2006-12-23 22:57:31 +00:00
|
|
|
def parse(value)
|
2006-12-22 06:22:15 +00:00
|
|
|
@value = value
|
|
|
|
end
|
2008-04-07 23:09:17 -07:00
|
|
|
|
2006-12-24 00:23:28 +00:00
|
|
|
def plus(other)
|
|
|
|
Sass::Constant::String.from_value(self.to_s + other.to_s)
|
|
|
|
end
|
2007-08-04 06:05:03 +00:00
|
|
|
|
|
|
|
def funcall(other)
|
|
|
|
Sass::Constant::String.from_value("#{self.to_s}(#{other.to_s})")
|
|
|
|
end
|
2008-04-07 23:09:17 -07:00
|
|
|
|
2006-12-23 03:06:52 +00:00
|
|
|
def to_s
|
|
|
|
@value
|
2006-12-22 06:22:15 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|