Class: JsDependency::CliUtils::Config
- Inherits:
-
Object
- Object
- JsDependency::CliUtils::Config
- Defined in:
- lib/js_dependency/cli_utils/config.rb
Instance Attribute Summary collapse
-
#alias_paths ⇒ Object
readonly
Returns the value of attribute alias_paths.
-
#child_analyze_level ⇒ Object
readonly
Returns the value of attribute child_analyze_level.
-
#exclude_output_names ⇒ Object
readonly
Returns the value of attribute exclude_output_names.
-
#excludes ⇒ Object
readonly
Returns the value of attribute excludes.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#name_level ⇒ Object
readonly
Returns the value of attribute name_level.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#parent_analyze_level ⇒ Object
readonly
Returns the value of attribute parent_analyze_level.
-
#src_path ⇒ Object
readonly
Returns the value of attribute src_path.
-
#target_path ⇒ Object
readonly
Returns the value of attribute target_path.
-
#target_paths ⇒ Object
readonly
Returns the value of attribute target_paths.
Instance Method Summary collapse
-
#initialize(options, args) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options, args) ⇒ Config
Returns a new instance of Config.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/js_dependency/cli_utils/config.rb', line 11 def initialize(, args) @src_path = [:src_path] || args[:src_path] @target_paths = calc_target_paths([:target_path], [:target_paths], args[:target_path], args[:target_paths]) @target_path = calc_target_path([:target_path], [:target_paths], args[:target_path], args[:target_paths]) @child_analyze_level = [:child_analyze_level] || args[:child_analyze_level] || 2 @parent_analyze_level = [:parent_analyze_level] || args[:parent_analyze_level] || 2 @output_path = [:output_path] || args[:output_path] || nil @alias_paths = [:alias_paths] || args[:alias_paths] || {} @name_level = [:name_level] || args[:name_level] || 1 @excludes = calc_excludes([:excludes], args[:excludes]) @identifier = [:identifier] || nil @exclude_output_names = [:exclude_output_names] || [] end |
Instance Attribute Details
#alias_paths ⇒ Object (readonly)
Returns the value of attribute alias_paths.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def alias_paths @alias_paths end |
#child_analyze_level ⇒ Object (readonly)
Returns the value of attribute child_analyze_level.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def child_analyze_level @child_analyze_level end |
#exclude_output_names ⇒ Object (readonly)
Returns the value of attribute exclude_output_names.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def exclude_output_names @exclude_output_names end |
#excludes ⇒ Object (readonly)
Returns the value of attribute excludes.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def excludes @excludes end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def identifier @identifier end |
#name_level ⇒ Object (readonly)
Returns the value of attribute name_level.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def name_level @name_level end |
#output_path ⇒ Object (readonly)
Returns the value of attribute output_path.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def output_path @output_path end |
#parent_analyze_level ⇒ Object (readonly)
Returns the value of attribute parent_analyze_level.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def parent_analyze_level @parent_analyze_level end |
#src_path ⇒ Object (readonly)
Returns the value of attribute src_path.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def src_path @src_path end |
#target_path ⇒ Object (readonly)
Returns the value of attribute target_path.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def target_path @target_path end |
#target_paths ⇒ Object (readonly)
Returns the value of attribute target_paths.
6 7 8 |
# File 'lib/js_dependency/cli_utils/config.rb', line 6 def target_paths @target_paths end |