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
nex3 67397758bd Plus operation defined for all constants.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@259 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-24 00:23:28 +00:00

18 lines
281 B
Ruby

require 'sass/constant/literal'
module Sass::Constant
class String < Literal
def parse(value)
@value = value
end
def plus(other)
Sass::Constant::String.from_value(self.to_s + other.to_s)
end
def to_s
@value
end
end
end