Class: Redcar::Mirah::MyErrorHandler
- Inherits:
-
Object
- Object
- Redcar::Mirah::MyErrorHandler
- Includes:
- ErrorHandler
- Defined in:
- lib/mirah/my_error_handler.rb
Instance Method Summary collapse
Instance Method Details
#problem(m) ⇒ Object
7 8 9 |
# File 'lib/mirah/my_error_handler.rb', line 7 def problem(m) (@problems||=[]) << m end |
#problems ⇒ Object
11 12 13 |
# File 'lib/mirah/my_error_handler.rb', line 11 def problems @problems || [] end |
#warning(messages, positions) ⇒ Object
15 16 17 18 19 |
# File 'lib/mirah/my_error_handler.rb', line 15 def warning(, positions) .length.times { |i| problem "Warning: #{[i]} #{positions[i]}" } end |