Class: ZendeskAppsSupport::Manifest::NoOverrideHash
- Inherits:
-
Hash
- Object
- Hash
- ZendeskAppsSupport::Manifest::NoOverrideHash
- Defined in:
- lib/zendesk_apps_support/manifest/no_override_hash.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.[](array) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/zendesk_apps_support/manifest/no_override_hash.rb', line 35 def [](array) new.tap do |hash| array.each do |key, value| hash[key] = value end end end |
Instance Method Details
#[]=(key, value) ⇒ Object
44 45 46 47 |
# File 'lib/zendesk_apps_support/manifest/no_override_hash.rb', line 44 def []=(key, value) raise OverrideError.new(key, self[key], value) if key? key super end |