Class: Yeti::Errors
- Inherits:
-
ActiveModel::Errors
- Object
- ActiveModel::Errors
- Yeti::Errors
- Defined in:
- lib/yeti/errors.rb
Instance Method Summary collapse
-
#initialize(base, opts = {}) ⇒ Errors
constructor
A new instance of Errors.
- #untranslated? ⇒ Boolean
Constructor Details
#initialize(base, opts = {}) ⇒ Errors
Returns a new instance of Errors.
4 5 6 7 |
# File 'lib/yeti/errors.rb', line 4 def initialize(base, opts={}) super base @untranslated = opts.fetch :untranslated, false end |
Instance Method Details
#untranslated? ⇒ Boolean
9 10 11 |
# File 'lib/yeti/errors.rb', line 9 def untranslated? @untranslated end |