Class: Malt::Format::Sass
Overview
Instance Attribute Summary
Attributes inherited from Abstract
#options
Instance Method Summary
collapse
Methods inherited from Abstract
#engine, engine, extensions, #extensions, #file, file_extension, #file_read, #file_type, #parse_type_from_data, #refile, register, #render, #render_into, #rendering_parameters, #scope_vs_data, #subtype, #text, #to, #to_default, #to_s, #type, #with, #with!
Instance Method Details
#css(*data, &content) ⇒ Object
25
26
27
28
|
# File 'lib/malt/formats/sass.rb', line 25
def css(*data, &content)
render_into(:css, *data, &content)
end
|
15
16
17
|
# File 'lib/malt/formats/sass.rb', line 15
def sass(*)
text
end
|
#to_css(*data, &content) ⇒ Object
31
32
33
34
|
# File 'lib/malt/formats/sass.rb', line 31
def to_css(*data, &content)
result = css(*data, &content)
CSS.new(:text=>result, :file=>refile(:css), :type=>:css)
end
|
20
21
22
|
# File 'lib/malt/formats/sass.rb', line 20
def to_sass(*)
self
end
|