Module: Omniconf::Adapter::ReadOnly
- Included in:
- Yaml
- Defined in:
- lib/omniconf/adapters/read_only.rb
Instance Method Summary collapse
Instance Method Details
#set_value(key, value) ⇒ Object
4 5 6 7 8 |
# File 'lib/omniconf/adapters/read_only.rb', line 4 def set_value(key, value) raise ReadOnlyConfigurationValue, "cannot set '#{key.join('.')}' " << "because it belongs to a read-only back-end source " << "(id: #{@source_id.inspect}, type: #{self.class.to_s.demodulize})" end |