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
34 35 36 37 38 39 40 |
# File 'lib/zendesk_apps_support/manifest/no_override_hash.rb', line 34 def [](array) new.tap do |hash| array.each do |key, value| hash[key] = value end end end |
Instance Method Details
#[]=(key, value) ⇒ Object
43 44 45 46 |
# File 'lib/zendesk_apps_support/manifest/no_override_hash.rb', line 43 def []=(key, value) raise OverrideError.new(key, self[key], value) if key? key super end |