Class: CC::Config::DefaultAdapter
- Inherits:
-
Object
- Object
- CC::Config::DefaultAdapter
- Defined in:
- lib/cc/config/default_adapter.rb
Constant Summary collapse
- ENGINES =
intentionally not sorted: we want them in a particular order
{ "structure".freeze => "stable".freeze, "duplication".freeze => "stable".freeze, }.freeze
- EXCLUDE_PATTERNS =
%w[ config/ db/ dist/ features/ **/node_modules/ script/ **/spec/ **/test/ **/tests/ Tests/ **/vendor/ **/*_test.go **/*.d.ts ].freeze
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ DefaultAdapter
constructor
A new instance of DefaultAdapter.
Constructor Details
#initialize(data = {}) ⇒ DefaultAdapter
Returns a new instance of DefaultAdapter.
28 29 30 31 32 33 |
# File 'lib/cc/config/default_adapter.rb', line 28 def initialize(data = {}) @config = data apply_default_excludes apply_default_engines end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
26 27 28 |
# File 'lib/cc/config/default_adapter.rb', line 26 def config @config end |