Class: Nanoc::MutableConfigView

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

Constant Summary

Constants inherited from ConfigView

ConfigView::NONE

Instance Method Summary collapse

Methods inherited from ConfigView

#[], #each, #fetch, #initialize, #key?, #unwrap

Methods inherited from View

#_context, #frozen?, #initialize, #inspect, #unwrap

Constructor Details

This class inherits a constructor from Nanoc::ConfigView

Instance Method Details

#[]=(key, value) ⇒ Object

Sets the value for the given attribute.

Parameters:

  • key (Symbol)

See Also:

  • Hash#[]=


8
9
10
# File 'lib/nanoc/base/views/mutable_config_view.rb', line 8

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