ri > Sass::Engine

= Sass::Engine < Object
(from /home/chedong/.local/share/rdoc)

📛 NAME

Sass::Engine < Object

🚀 Quick Reference

Use CaseCommandDescription
Read Sass templatetemplate = File.read('stylesheets/sassy.sass')Read the Sass file content
Create enginesass_engine = Sass::Engine.new(template)Instantiate engine with template
Render to CSSoutput = sass_engine.renderCompile Sass to CSS
Render with sourcemapsass_engine.render_with_sourcemapCompile with source map
Set optionssass_engine = Sass::Engine.new(template, options)Pass custom options (e.g. :style => :compressed)

📝 Description

This class handles the parsing and compilation of the Sass template. Example usage:

template = File.read('stylesheets/sassy.sass')
sass_engine = Sass::Engine.new(template)
output = sass_engine.render
puts output

📇 Constants

🔧 Class Methods

⚙️ Instance Methods

📋 Attributes

Sass::Engine
📛 NAME 🚀 Quick Reference 📝 Description 📇 Constants 🔧 Class Methods ⚙️ Instance Methods 📋 Attributes

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 05:28 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^