Module: Card::Set::Type::Css
Instance Method Summary
collapse
Methods included from Card::Set
abstract_set?, all_set?, card_accessor, card_reader, card_writer, clean_empty_module_from_hash, clean_empty_modules, define_active_job, define_event_method, define_event_perform_later_method, define_on_format, ensure_set, event, extended, format, process_base_module_list, process_base_modules, register_set, register_set_format, shortname, view, write_tmp_file
included
Methods included from Machine
#ensure_machine_output, included, #input_item_cards, #lock!, #lock_cache_key, #locked?, #machine_output_path, #machine_output_url, #reset_machine_output!, #run_machine, #unlock!, #update_input_card, #update_machine_output
Instance Method Details
#clean_html? ⇒ Boolean
22
23
24
|
# File 'tmpsets/set/mod004-03_machines/type/css.rb', line 22
def clean_html?
false
end
|
#compress_css(input) ⇒ Object
14
15
16
17
18
19
20
|
# File 'tmpsets/set/mod004-03_machines/type/css.rb', line 14
def compress_css input
begin
Sass.compile input, :style=>:compressed
rescue => e
raise Card::Oops, "Stylesheet Error:\n#{ e.message }"
end
end
|
#diff_args ⇒ Object
49
50
51
|
# File 'tmpsets/set/mod004-03_machines/type/css.rb', line 49
def diff_args
{:format=>:text}
end
|