Module: Card::Set::All::Error::Format
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- tmpsets/set/mod021-standard/all/error.rb
Instance Method Summary collapse
-
#standard_error_message(attribute, message) ⇒ Object
for override.
- #standard_errors ⇒ Object
- #unsupported_view_error_message(view) ⇒ Object
Instance Method Details
#standard_error_message(attribute, message) ⇒ Object
for override
52 53 54 |
# File 'tmpsets/set/mod021-standard/all/error.rb', line 52 def attribute, "#{attribute.to_s.upcase}: #{}" end |
#standard_errors ⇒ Object
45 46 47 48 49 |
# File 'tmpsets/set/mod021-standard/all/error.rb', line 45 def standard_errors card.errors.map do |attrib, msg| attrib == :abort ? msg : (attrib, msg) end end |
#unsupported_view_error_message(view) ⇒ Object
56 57 58 |
# File 'tmpsets/set/mod021-standard/all/error.rb', line 56 def view tr(:unsupported_view, view: view, cardname: card.name) end |