Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move requires to literal

  • Loading branch information...
commit d2ee3a6601f506fdf9c98f393f98e440c1a2ca1a 1 parent 39a628c
@tenderlove authored
View
2  lib/sass/script/bool.rb
@@ -1,5 +1,3 @@
-require 'sass/script/literal'
-
module Sass::Script
# A SassScript object representing a boolean (true or false) value.
class Bool < Literal
View
2  lib/sass/script/color.rb
@@ -1,5 +1,3 @@
-require 'sass/script/literal'
-
module Sass::Script
# A SassScript object representing a CSS color.
#
View
5 lib/sass/script/literal.rb
@@ -5,6 +5,11 @@ module Sass::Script
# are designed to be overridden by subclasses which may change the semantics somewhat.
# The operations listed here are just the defaults.
class Literal < Node
+ require 'sass/script/string'
+ require 'sass/script/number'
+ require 'sass/script/color'
+ require 'sass/script/bool'
+ require 'sass/script/null'
require 'sass/script/list'
require 'sass/script/arg_list'
View
2  lib/sass/script/null.rb
@@ -1,5 +1,3 @@
-require 'sass/script/literal'
-
module Sass::Script
# A SassScript object representing a null value.
class Null < Literal
View
2  lib/sass/script/number.rb
@@ -1,5 +1,3 @@
-require 'sass/script/literal'
-
module Sass::Script
# A SassScript object representing a number.
# SassScript numbers can have decimal values,
View
2  lib/sass/script/string.rb
@@ -1,5 +1,3 @@
-require 'sass/script/literal'
-
module Sass::Script
# A SassScript object representing a CSS string *or* a CSS identifier.
class String < Literal
Please sign in to comment.
Something went wrong with that request. Please try again.