Class: Jekyll::GeneratorSingleSource::NavConfig::InheritedConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/generator-single-source/nav_config/inherited_config.rb

Instance Method Summary collapse

Constructor Details

#initialize(base_config:, file_path:) ⇒ InheritedConfig

Returns a new instance of InheritedConfig.



7
8
9
10
# File 'lib/jekyll/generator-single-source/nav_config/inherited_config.rb', line 7

def initialize(base_config:, file_path:)
  @base_config = base_config
  @file_path = file_path
end

Instance Method Details

#inherit!Object



12
13
14
15
16
17
18
19
20
# File 'lib/jekyll/generator-single-source/nav_config/inherited_config.rb', line 12

def inherit!
  rewrite_paths!
  rewrite_items!
  apply_patches!

  @base_config.delete('inherit')

  @base_config
end