Class: Muwu::ProjectOptions
- Inherits:
-
Object
- Object
- Muwu::ProjectOptions
- Defined in:
- lib/muwu/project_options/project_options.rb
Instance Attribute Summary collapse
-
#generate_navigators_automatically ⇒ Object
Returns the value of attribute generate_navigators_automatically.
-
#generate_subcontents_automatically ⇒ Object
Returns the value of attribute generate_subcontents_automatically.
-
#html_head_includes_metadata_tags ⇒ Object
Returns the value of attribute html_head_includes_metadata_tags.
-
#html_lang ⇒ Object
Returns the value of attribute html_lang.
-
#html_uses_javascript_navigation ⇒ Object
Returns the value of attribute html_uses_javascript_navigation.
-
#markdown_allows_raw_html ⇒ Object
Returns the value of attribute markdown_allows_raw_html.
-
#markdown_renderer ⇒ Object
Returns the value of attribute markdown_renderer.
-
#outline_text_pathnames ⇒ Object
Returns the value of attribute outline_text_pathnames.
-
#output_destination ⇒ Object
Returns the value of attribute output_destination.
-
#output_file_css_basename ⇒ Object
Returns the value of attribute output_file_css_basename.
-
#output_file_html_basename ⇒ Object
Returns the value of attribute output_file_html_basename.
-
#output_file_js_basename ⇒ Object
Returns the value of attribute output_file_js_basename.
-
#output_formats ⇒ Object
Returns the value of attribute output_formats.
-
#remote_publish ⇒ Object
Returns the value of attribute remote_publish.
-
#remote_sync ⇒ Object
Returns the value of attribute remote_sync.
-
#render_punctuation_smart ⇒ Object
Returns the value of attribute render_punctuation_smart.
-
#render_section_end_links ⇒ Object
Returns the value of attribute render_section_end_links.
-
#render_section_numbers ⇒ Object
Returns the value of attribute render_section_numbers.
-
#render_sections_distinctly_depth_max ⇒ Object
Returns the value of attribute render_sections_distinctly_depth_max.
-
#render_title_section_metadata ⇒ Object
Returns the value of attribute render_title_section_metadata.
-
#rsync_options ⇒ Object
Returns the value of attribute rsync_options.
-
#warning_if_parent_heading_lacks_source ⇒ Object
Returns the value of attribute warning_if_parent_heading_lacks_source.
Instance Method Summary collapse
-
#initialize ⇒ ProjectOptions
constructor
A new instance of ProjectOptions.
- #inspect ⇒ Object
- #inspect_instance_variables ⇒ Object
- #set_option(key, value) ⇒ Object
Constructor Details
#initialize ⇒ ProjectOptions
Returns a new instance of ProjectOptions.
31 32 33 34 35 |
# File 'lib/muwu/project_options/project_options.rb', line 31 def initialize Default::PROJECT_OPTIONS.each_pair do |key, value| set_option(key, value) end end |
Instance Attribute Details
#generate_navigators_automatically ⇒ Object
Returns the value of attribute generate_navigators_automatically.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def generate_navigators_automatically @generate_navigators_automatically end |
#generate_subcontents_automatically ⇒ Object
Returns the value of attribute generate_subcontents_automatically.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def generate_subcontents_automatically @generate_subcontents_automatically end |
#html_head_includes_metadata_tags ⇒ Object
Returns the value of attribute html_head_includes_metadata_tags.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def @html_head_includes_metadata_tags end |
#html_lang ⇒ Object
Returns the value of attribute html_lang.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def html_lang @html_lang end |
#html_uses_javascript_navigation ⇒ Object
Returns the value of attribute html_uses_javascript_navigation.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def @html_uses_javascript_navigation end |
#markdown_allows_raw_html ⇒ Object
Returns the value of attribute markdown_allows_raw_html.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def markdown_allows_raw_html @markdown_allows_raw_html end |
#markdown_renderer ⇒ Object
Returns the value of attribute markdown_renderer.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def markdown_renderer @markdown_renderer end |
#outline_text_pathnames ⇒ Object
Returns the value of attribute outline_text_pathnames.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def outline_text_pathnames @outline_text_pathnames end |
#output_destination ⇒ Object
Returns the value of attribute output_destination.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def output_destination @output_destination end |
#output_file_css_basename ⇒ Object
Returns the value of attribute output_file_css_basename.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def output_file_css_basename @output_file_css_basename end |
#output_file_html_basename ⇒ Object
Returns the value of attribute output_file_html_basename.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def output_file_html_basename @output_file_html_basename end |
#output_file_js_basename ⇒ Object
Returns the value of attribute output_file_js_basename.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def output_file_js_basename @output_file_js_basename end |
#output_formats ⇒ Object
Returns the value of attribute output_formats.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def output_formats @output_formats end |
#remote_publish ⇒ Object
Returns the value of attribute remote_publish.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def remote_publish @remote_publish end |
#remote_sync ⇒ Object
Returns the value of attribute remote_sync.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def remote_sync @remote_sync end |
#render_punctuation_smart ⇒ Object
Returns the value of attribute render_punctuation_smart.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def render_punctuation_smart @render_punctuation_smart end |
#render_section_end_links ⇒ Object
Returns the value of attribute render_section_end_links.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def render_section_end_links @render_section_end_links end |
#render_section_numbers ⇒ Object
Returns the value of attribute render_section_numbers.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def render_section_numbers @render_section_numbers end |
#render_sections_distinctly_depth_max ⇒ Object
Returns the value of attribute render_sections_distinctly_depth_max.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def render_sections_distinctly_depth_max @render_sections_distinctly_depth_max end |
#render_title_section_metadata ⇒ Object
Returns the value of attribute render_title_section_metadata.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def @render_title_section_metadata end |
#rsync_options ⇒ Object
Returns the value of attribute rsync_options.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def @rsync_options end |
#warning_if_parent_heading_lacks_source ⇒ Object
Returns the value of attribute warning_if_parent_heading_lacks_source.
5 6 7 |
# File 'lib/muwu/project_options/project_options.rb', line 5 def warning_if_parent_heading_lacks_source @warning_if_parent_heading_lacks_source end |
Instance Method Details
#inspect ⇒ Object
38 39 40 |
# File 'lib/muwu/project_options/project_options.rb', line 38 def inspect ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ') end |
#inspect_instance_variables ⇒ Object
43 44 45 |
# File 'lib/muwu/project_options/project_options.rb', line 43 def inspect_instance_variables instance_variables.map { |v| "#{v}=#{instance_variable_get(v).inspect}" }.join(", ") end |
#set_option(key, value) ⇒ Object
48 49 50 51 52 53 |
# File 'lib/muwu/project_options/project_options.rb', line 48 def set_option(key, value) if Default::PROJECT_OPTIONS.has_key?(key) key_ivsym = "@#{key.to_s}" instance_variable_set(key_ivsym, value) end end |