Class: Sass::Script::Value::Callable
- Inherits:
-
Base
- Object
- Base
- Sass::Script::Value::Callable
- Defined in:
- .ruby-sass/lib/sass/script/value/callable.rb
Overview
A SassScript object representing a null value.
Direct Known Subclasses
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 ⇒ Object
- #to_s(opts = {}) ⇒ Object
- #to_sass ⇒ Object abstract
Methods inherited from Base
#==, #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 '.ruby-sass/lib/sass/script/value/callable.rb', line 8 def initialize(callable) super(callable) end |
Constructor Details
#initialize(callable) ⇒ Callable
Constructs a Callable value for use in SassScript.
callable is called.
8 9 10 |
# File '.ruby-sass/lib/sass/script/value/callable.rb', line 8 def initialize(callable) super(callable) end |
Instance Method Details
#inspect ⇒ Object
16 17 18 |
# File '.ruby-sass/lib/sass/script/value/callable.rb', line 16 def inspect to_sass end |
#to_s(opts = {}) ⇒ Object
12 13 14 |
# File '.ruby-sass/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 |