Class: Katarina::Config
- Inherits:
-
Object
- Object
- Katarina::Config
- Defined in:
- lib/katarina/config.rb
Instance Attribute Summary collapse
-
#exclude_paths ⇒ Object
Returns the value of attribute exclude_paths.
- #input_path ⇒ Object
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 13 14 15 |
# File 'lib/katarina/config.rb', line 10 def initialize @input_path = RSpec::OpenAPI.path @output_dir = [*@input_path.split('/')[0..-2], 'types'].join('/') @exclude_paths = [] @prefix = true end |
Instance Attribute Details
#exclude_paths ⇒ Object
Returns the value of attribute exclude_paths.
7 8 9 |
# File 'lib/katarina/config.rb', line 7 def exclude_paths @exclude_paths end |
#input_path ⇒ Object
17 18 19 |
# File 'lib/katarina/config.rb', line 17 def input_path [Dir.pwd, @input_path].join('/') end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
7 8 9 |
# File 'lib/katarina/config.rb', line 7 def output_dir @output_dir end |
#prefix ⇒ Object
Returns the value of attribute prefix.
7 8 9 |
# File 'lib/katarina/config.rb', line 7 def prefix @prefix end |