Module: Card::Set::Type::CoffeeScript

Extended by:
Card::Set
Includes:
Machine, MachineInput
Defined in:
tmpsets/set/mod004-03_machines/type/coffee_script.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)


26
27
28
# File 'tmpsets/set/mod004-03_machines/type/coffee_script.rb', line 26

def clean_html?
  false
end

#compile_coffee(script) ⇒ Object



14
15
16
17
18
# File 'tmpsets/set/mod004-03_machines/type/coffee_script.rb', line 14

def compile_coffee script
  ::CoffeeScript.compile script
rescue =>e
  e
end

#diff_argsObject



62
63
64
# File 'tmpsets/set/mod004-03_machines/type/coffee_script.rb', line 62

def diff_args
  { format: :text }
end