Class: Sass::Script::Value::Callable
- Defined in:
- lib/sass/script/value/callable.rb
Overview
A SassScript object representing a null value.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#options, #source_range, #value
Instance Method Summary collapse
-
#initialize(callable) ⇒ Callable
constructor
Constructs a Callable value for use in SassScript.
- #inspect
- #to_s(opts = {})
- #to_sass abstract
Methods inherited from Base
#==, #_perform, #assert_int!, #bracketed, #div, #eq, #eql?, #hash, #minus, #neq, #null?, #plus, #separator, #single_eq, #to_a, #to_bool, #to_h, #to_i, #unary_div, #unary_minus, #unary_not, #unary_plus, #with_contents
Constructor Details
#initialize(callable) ⇒ Callable
Constructs a Callable value for use in SassScript.
callable is called.
8 9 10 |
# File 'lib/sass/script/value/callable.rb', line 8
def initialize(callable)
super(callable)
end
|
Instance Method Details
#inspect
16 17 18 |
# File 'lib/sass/script/value/callable.rb', line 16
def inspect
to_sass
end
|
#to_s(opts = {})
12 13 14 |
# File 'lib/sass/script/value/callable.rb', line 12
def to_s(opts = {})
raise Sass::SyntaxError.new("#{to_sass} isn't a valid CSS value.")
end
|
#to_sass
This method is abstract.
21 22 23 |
# File 'lib/sass/script/value/callable.rb', line 21
def to_sass
Sass::Util.abstract(self)
end
|