Module: Steep::Diagnostic::Helper
- Included in:
- Ruby::Base, Signature::Base
- Defined in:
- lib/steep/diagnostic/helper.rb
Instance Method Summary collapse
Instance Method Details
#error_name ⇒ Object
4 5 6 7 |
# File 'lib/steep/diagnostic/helper.rb', line 4 def error_name name = self.class.name or raise name.split(/::/).last or raise end |
#full_message ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/steep/diagnostic/helper.rb', line 9 def if detail = detail_lines "#{header_line}\n#{detail}" else "#{header_line}" end end |