Class: Card::Format::CsvFormat

Inherits:
TextFormat show all
Defined in:
mod/basic_formats/format/csv_format.rb

Constant Summary

Constants included from MethodDelegation

MethodDelegation::RENDER_METHOD_RE

Instance Attribute Summary

Attributes inherited from Card::Format

#card, #error_status, #form, #main_opts, #modal_opts, #parent, #rendered

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Card::Format

#controller, #escape_literal, #include_set_format_modules, #initialize, #page, #params, #require_card_to_initialize!, #session, #template, #to_sym

Methods included from Registration

#class_from_name, #format_ancestry, #format_class, #format_class_name, #format_sym, #new, #register

Methods included from MethodDelegation

#api_render, #method_missing, #pass_method_to_template_object, #render_args, #respond_to_missing?

Methods included from Error

#anyone_can?, #error_cardname, #log_error, #loud_error, #loud_error?, #monitor_depth, #ok?, #quiet_error, #rendering_error, #rescue_view, #view_for_denial, #view_for_unknown

Methods included from Content

#add_class, #content_nest, #css_classes, #format_date, #id_counter, #output, #prepend_class, #process_content, #safe_process_content, #unique_id

Methods included from ContextNames

#add_name_context, #context_names, #context_names_from_params, #context_names_to_params, #initial_context_names, #naming, #relevant_context_names, #title_in_context

Methods included from Render

#add_debug_info, #before_view, #current_view, #expand_stubs, #final_render, #final_render_call, #prepare_stub_nest, #pretty_path, #raise_wrap_error, #render!, #render_with_card_layout, #render_with_wrapper, #show_debug_info?, #show_view?, #stub_debugging, #stub_nest, #stub_render, #supports_view?, #view_cache_setting, #view_method, #view_setting, #voo, #with_voo, #with_wrapper, #wrap_with_wrapper

Methods included from Nesting

#default_nest_view, #field_nest, #implicit_nest_view, #nest, #nest_path

Methods included from Nesting::Mode

#configured_view_in_compact_mode, #hide_view_in_edit_mode?, #modal_nest_view, #nest_mode, #view_in_compact_mode, #view_in_edit_mode, #with_altered_nest_mode, #with_nest_mode

Methods included from Nesting::Subformat

#depth, #field_subformat, #focal?, #inherit, #main, #main?, #root, #root?, #subformat

Methods included from Nesting::Main

#already_mained?, #main!, #main_nest, #main_nest?, #main_nest_options, #main_nest_render, #wrap_main

Methods included from Env::Location

#card_path, #card_url, #cardname_from_url, #protocol_and_host

Constructor Details

This class inherits a constructor from Card::Format

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Card::Format::MethodDelegation

Class Method Details

.view_caching?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
# File 'mod/basic_formats/format/csv_format.rb', line 12

def self.view_caching?
  # TODO: make view caching handle non-strings
  # (specifically stub_render)
  false
end

Instance Method Details

#mime_typeObject



8
9
10
# File 'mod/basic_formats/format/csv_format.rb', line 8

def mime_type
  "text/comma-separated-values"
end