Class: Nanoc::Core::MutableConfigView

Inherits:
ConfigView show all
Defined in:
lib/nanoc/core/mutable_config_view.rb

Instance Method Summary collapse

Methods inherited from ConfigView

#[], #_unwrap, #dig, #each, #env_name, #fetch, #initialize, #key?, #output_dir

Methods inherited from View

#_context, #_unwrap, #frozen?, #initialize, #inspect

Methods included from ContractsSupport

enabled?, included, setup_once, warn_about_performance

Constructor Details

This class inherits a constructor from Nanoc::Core::ConfigView

Instance Method Details

#[]=(key, value) ⇒ Object

Sets the value for the given attribute.

Parameters:

  • key (Symbol)

See Also:

  • Hash#[]=


11
12
13
# File 'lib/nanoc/core/mutable_config_view.rb', line 11

def []=(key, value)
  @config[key] = value
end