Class: Muwu::ProjectOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/muwu/project_options/project_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProjectOptions

Returns a new instance of ProjectOptions.



28
29
30
31
32
# File 'lib/muwu/project_options/project_options.rb', line 28

def initialize
  Default::PROJECT_OPTIONS.each_pair do |key, value|
    set_option(key, value)
  end
end

Instance Attribute Details

#generate_navigators_automaticallyObject

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_automaticallyObject

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_tagsObject

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_langObject

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_navigationObject

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
  @html_uses_javascript_navigation
end

#markdown_allows_raw_htmlObject

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_rendererObject

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_pathnamesObject

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_destinationObject

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_basenameObject

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_basenameObject

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_basenameObject

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_formatsObject

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

#render_punctuation_smartObject

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

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_numbersObject

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_maxObject

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_metadataObject

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

#warning_if_parent_heading_lacks_sourceObject

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

#inspectObject



35
36
37
# File 'lib/muwu/project_options/project_options.rb', line 35

def inspect
  ["#{self.to_s}", "{", inspect_instance_variables, "}"].join(' ')
end

#inspect_instance_variablesObject



40
41
42
# File 'lib/muwu/project_options/project_options.rb', line 40

def inspect_instance_variables
  instance_variables.map { |v| "#{v}=#{instance_variable_get(v).inspect}" }.join(", ")
end

#set_option(key, value) ⇒ Object



45
46
47
48
49
50
# File 'lib/muwu/project_options/project_options.rb', line 45

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