Class: PackwerkMermaid::Configuration
- Inherits:
-
Object
- Object
- PackwerkMermaid::Configuration
- Defined in:
- lib/packwerk_mermaid/configuration.rb
Instance Attribute Summary collapse
-
#mermaid_shape_style ⇒ Object
Returns the value of attribute mermaid_shape_style.
-
#mermaid_text_type ⇒ Object
Returns the value of attribute mermaid_text_type.
-
#mermaid_title ⇒ Object
Returns the value of attribute mermaid_title.
-
#packwerk_directory ⇒ Object
Returns the value of attribute packwerk_directory.
-
#packwerk_loader ⇒ Object
Returns the value of attribute packwerk_loader.
-
#packwerk_package_name_callback ⇒ Object
Returns the value of attribute packwerk_package_name_callback.
-
#packwerk_package_name_mapping ⇒ Object
Returns the value of attribute packwerk_package_name_mapping.
-
#packwerk_package_visibility_callback ⇒ Object
Returns the value of attribute packwerk_package_visibility_callback.
-
#packwerk_packages_hidden ⇒ Object
Returns the value of attribute packwerk_packages_hidden.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/packwerk_mermaid/configuration.rb', line 15 def initialize @packwerk_directory = "." @packwerk_package_name_mapping = {} @packwerk_loader = Proc.new { |dir| Packwerk::PackageSet.load_all_from(dir) } @packwerk_packages_hidden = [] @packwerk_package_visibility_callback = Proc.new { |_node_name, _parent_node_name| true } @mermaid_title = nil @mermaid_text_type = MermaidFlowchartBuilder::TEXT @mermaid_shape_style = MermaidFlowchartBuilder::RECTANGLE_ROUNDED end |
Instance Attribute Details
#mermaid_shape_style ⇒ Object
Returns the value of attribute mermaid_shape_style.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def mermaid_shape_style @mermaid_shape_style end |
#mermaid_text_type ⇒ Object
Returns the value of attribute mermaid_text_type.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def mermaid_text_type @mermaid_text_type end |
#mermaid_title ⇒ Object
Returns the value of attribute mermaid_title.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def mermaid_title @mermaid_title end |
#packwerk_directory ⇒ Object
Returns the value of attribute packwerk_directory.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def packwerk_directory @packwerk_directory end |
#packwerk_loader ⇒ Object
Returns the value of attribute packwerk_loader.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def packwerk_loader @packwerk_loader end |
#packwerk_package_name_callback ⇒ Object
Returns the value of attribute packwerk_package_name_callback.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def packwerk_package_name_callback @packwerk_package_name_callback end |
#packwerk_package_name_mapping ⇒ Object
Returns the value of attribute packwerk_package_name_mapping.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def packwerk_package_name_mapping @packwerk_package_name_mapping end |
#packwerk_package_visibility_callback ⇒ Object
Returns the value of attribute packwerk_package_visibility_callback.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def packwerk_package_visibility_callback @packwerk_package_visibility_callback end |
#packwerk_packages_hidden ⇒ Object
Returns the value of attribute packwerk_packages_hidden.
5 6 7 |
# File 'lib/packwerk_mermaid/configuration.rb', line 5 def packwerk_packages_hidden @packwerk_packages_hidden end |