Class: RestMyCase::Context::Errors::Base
- Inherits:
-
Array
- Object
- Array
- RestMyCase::Context::Errors::Base
- Defined in:
- lib/rest_my_case/context/errors/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #add(error) ⇒ Object
-
#initialize(context) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(context) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 |
# File 'lib/rest_my_case/context/errors/base.rb', line 5 def initialize(context) super() @context = context end |
Instance Method Details
#add(error) ⇒ Object
11 12 13 |
# File 'lib/rest_my_case/context/errors/base.rb', line 11 def add(error) push(error) end |