Class: Spec::HashWithDeprecationNotice
- Defined in:
- lib/spec/deprecation.rb
Instance Method Summary collapse
- #[]=(k, v) ⇒ Object
-
#initialize(method, alternate_method = nil, &block) ⇒ HashWithDeprecationNotice
constructor
A new instance of HashWithDeprecationNotice.
Constructor Details
permalink #initialize(method, alternate_method = nil, &block) ⇒ HashWithDeprecationNotice
Returns a new instance of HashWithDeprecationNotice.
32 33 34 |
# File 'lib/spec/deprecation.rb', line 32 def initialize(method, alternate_method=nil, &block) @method, @alternate_method = method, alternate_method end |
Instance Method Details
permalink #[]=(k, v) ⇒ Object
[View source]
35 36 37 38 |
# File 'lib/spec/deprecation.rb', line 35 def []=(k,v) Spec.deprecate(@method, @alternate_method) super end |