Module: Card::Set::Type::Css

Extended by:
Card::Set
Includes:
Machine, MachineInput
Included in:
Scss
Defined in:
tmpsets/set/mod004-03_machines/type/css.rb

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_on_format, ensure_set, extended, format, process_base_module_list, process_base_modules, register_set, register_set_format, shortname, stage_method, view, write_tmp_file

Methods included from Event

#define_event, #event

Methods included from MachineInput

define_delete_events, define_update_event, included, search_involved_machines

Methods included from Machine

define_machine_events, define_machine_views, #ensure_machine_output, included, #input_item_cards, #lock!, #lock_cache_key, #locked?, #machine_output_path, #machine_output_url, #reset_machine_output!, #run_machine, set_default_input_collection_method, set_default_input_preparation_method, set_default_machine_behaviour, set_default_output_storage_method, #unlock!, #update_input_card, #update_machine_output

Instance Method Details

#clean_html?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'tmpsets/set/mod004-03_machines/type/css.rb', line 23

def clean_html?
  false
end

#compress_css(input) ⇒ Object



15
16
17
18
19
20
21
# File 'tmpsets/set/mod004-03_machines/type/css.rb', line 15

def compress_css input
  begin
    Sass.compile input, style: :compressed
  rescue => e
    raise Card::Oops, "Stylesheet Error:\n#{ e.message }"
  end
end

#diff_argsObject



50
51
52
# File 'tmpsets/set/mod004-03_machines/type/css.rb', line 50

def diff_args
   {format: :text}
end