Module: Sass
- Defined in:
- lib/sass/embedded.rb,
lib/sass/elf.rb,
lib/sass/value.rb,
lib/sass/compiler.rb,
lib/sass/exception.rb,
lib/sass/value/map.rb,
lib/sass/serializer.rb,
lib/sass/value/list.rb,
lib/sass/value/null.rb,
lib/sass/value/color.rb,
lib/sass/value/mixin.rb,
lib/sass/fork_tracker.rb,
lib/sass/value/number.rb,
lib/sass/value/string.rb,
lib/sass/compiler/host.rb,
lib/sass/logger/silent.rb,
lib/sass/value/boolean.rb,
lib/sass/compile_result.rb,
lib/sass/value/function.rb,
lib/sass/compiler/varint.rb,
lib/sass/compiler/channel.rb,
lib/sass/embedded/version.rb,
lib/sass/value/fuzzy_math.rb,
lib/sass/calculation_value.rb,
lib/sass/embedded_protocol.rb,
lib/sass/value/calculation.rb,
lib/sass/value/color/space.rb,
lib/sass/value/number/unit.rb,
lib/sass/logger/source_span.rb,
lib/sass/compiler/connection.rb,
lib/sass/compiler/dispatcher.rb,
lib/sass/value/argument_list.rb,
lib/sass/value/color/channel.rb,
lib/sass/canonicalize_context.rb,
lib/sass/node_package_importer.rb,
lib/sass/value/color/space/hsl.rb,
lib/sass/value/color/space/hwb.rb,
lib/sass/value/color/space/lab.rb,
lib/sass/value/color/space/lch.rb,
lib/sass/value/color/space/lms.rb,
lib/sass/value/color/space/rgb.rb,
lib/sass/logger/source_location.rb,
lib/sass/value/color/space/srgb.rb,
lib/sass/compiler/host/protofier.rb,
lib/sass/value/color/conversions.rb,
lib/sass/value/color/space/oklab.rb,
lib/sass/value/color/space/oklch.rb,
lib/sass/value/color/space/utils.rb,
lib/sass/compiler/host/structifier.rb,
lib/sass/value/color/space/a98_rgb.rb,
lib/sass/value/color/space/rec2020.rb,
lib/sass/value/color/space/xyz_d50.rb,
lib/sass/value/color/space/xyz_d65.rb,
lib/sass/value/color/gamut_map_method.rb,
lib/sass/value/color/space/display_p3.rb,
lib/sass/compiler/host/logger_registry.rb,
lib/sass/value/color/space/srgb_linear.rb,
lib/sass/value/color/space/prophoto_rgb.rb,
lib/sass/compiler/host/function_registry.rb,
lib/sass/compiler/host/importer_registry.rb,
lib/sass/value/color/interpolation_method.rb,
lib/sass/value/color/gamut_map_method/clip.rb,
lib/sass/calculation_value/calculation_operation.rb,
lib/sass/value/color/gamut_map_method/local_minde.rb,
ext/sass/embedded_sass_pb.rb
Overview
The Sass module.
This communicates with Embedded Dart Sass using the Embedded Sass protocol.
Defined Under Namespace
Modules: CalculationValue, Embedded, Logger, Value Classes: CanonicalizeContext, CompileError, CompileResult, Compiler, NodePackageImporter, ScriptError
Class Method Summary collapse
-
.compile(path, load_paths: [], charset: true, source_map: false, source_map_include_sources: false, style: :expanded, functions: {}, importers: [], alert_ascii: false, alert_color: nil, fatal_deprecations: [], future_deprecations: [], logger: nil, quiet_deps: false, silence_deprecations: [], verbose: false) ⇒ CompileResult
Compiles the Sass file at
path
to CSS. -
.compile_string(source, importer: nil, load_paths: [], syntax: :scss, url: nil, charset: true, source_map: false, source_map_include_sources: false, style: :expanded, functions: {}, importers: [], alert_ascii: false, alert_color: nil, fatal_deprecations: [], future_deprecations: [], logger: nil, quiet_deps: false, silence_deprecations: [], verbose: false) ⇒ CompileResult
Compiles a stylesheet whose contents is
source
to CSS. -
.info ⇒ String
Information about the Sass implementation.
Class Method Details
.compile(path, load_paths: [], charset: true, source_map: false, source_map_include_sources: false, style: :expanded, functions: {}, importers: [], alert_ascii: false, alert_color: nil, fatal_deprecations: [], future_deprecations: [], logger: nil, quiet_deps: false, silence_deprecations: [], verbose: false) ⇒ CompileResult
Compiles the Sass file at path
to CSS.
26 27 28 |
# File 'lib/sass/embedded.rb', line 26 def compile(...) compiler.compile(...) end |
.compile_string(source, importer: nil, load_paths: [], syntax: :scss, url: nil, charset: true, source_map: false, source_map_include_sources: false, style: :expanded, functions: {}, importers: [], alert_ascii: false, alert_color: nil, fatal_deprecations: [], future_deprecations: [], logger: nil, quiet_deps: false, silence_deprecations: [], verbose: false) ⇒ CompileResult
Compiles a stylesheet whose contents is source
to CSS.
36 37 38 |
# File 'lib/sass/embedded.rb', line 36 def compile_string(...) compiler.compile_string(...) end |
.info ⇒ String
Returns Information about the Sass implementation.
44 45 46 |
# File 'lib/sass/embedded.rb', line 44 def info compiler.info end |