Class: RailsFlowMap::Configuration
- Inherits:
-
Object
- Object
- RailsFlowMap::Configuration
- Defined in:
- lib/rails_flow_map/configuration.rb
Instance Attribute Summary collapse
-
#controller_pattern ⇒ Object
Returns the value of attribute controller_pattern.
-
#default_format ⇒ Object
Returns the value of attribute default_format.
-
#exclude_paths ⇒ Object
Returns the value of attribute exclude_paths.
-
#include_polymorphic ⇒ Object
Returns the value of attribute include_polymorphic.
-
#include_sti ⇒ Object
Returns the value of attribute include_sti.
-
#model_pattern ⇒ Object
Returns the value of attribute model_pattern.
-
#node_colors ⇒ Object
Returns the value of attribute node_colors.
-
#output_directory ⇒ Object
Returns the value of attribute output_directory.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rails_flow_map/configuration.rb', line 7 def initialize @exclude_paths = [] @model_pattern = 'app/models/**/*.rb' @controller_pattern = 'app/controllers/**/*.rb' @default_format = :mermaid @output_directory = 'doc/flow_maps' @include_sti = true @include_polymorphic = true @node_colors = { model: '#f9f', controller: '#bbf', action: '#bfb' } end |
Instance Attribute Details
#controller_pattern ⇒ Object
Returns the value of attribute controller_pattern.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def controller_pattern @controller_pattern end |
#default_format ⇒ Object
Returns the value of attribute default_format.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def default_format @default_format end |
#exclude_paths ⇒ Object
Returns the value of attribute exclude_paths.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def exclude_paths @exclude_paths end |
#include_polymorphic ⇒ Object
Returns the value of attribute include_polymorphic.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def include_polymorphic @include_polymorphic end |
#include_sti ⇒ Object
Returns the value of attribute include_sti.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def include_sti @include_sti end |
#model_pattern ⇒ Object
Returns the value of attribute model_pattern.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def model_pattern @model_pattern end |
#node_colors ⇒ Object
Returns the value of attribute node_colors.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def node_colors @node_colors end |
#output_directory ⇒ Object
Returns the value of attribute output_directory.
3 4 5 |
# File 'lib/rails_flow_map/configuration.rb', line 3 def output_directory @output_directory end |