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/number.rb
nex3 e794493bc8 Number literal.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@251 7063305b-7217-0410-af8c-cdc13e5119b9
2006-12-23 21:23:27 +00:00

13 lines
216 B
Ruby

module Sass::Constant
class Number
def initialize(value)
value = value.to_f
value = value.to_i if value % 1 == 0.0
@value = value
end
def to_s
@value.to_s
end
end
end