Class: Synvert::Core::Rewriter::Warning
- Inherits:
-
Object
- Object
- Synvert::Core::Rewriter::Warning
- Defined in:
- lib/synvert/core/rewriter/warning.rb
Overview
Warning is used to save warning message.
Instance Method Summary collapse
-
#initialize(file_path, line, message) ⇒ Warning
constructor
Initialize a Warning.
-
#message ⇒ String
Warning message.
Constructor Details
#initialize(file_path, line, message) ⇒ Warning
Initialize a Warning.
11 12 13 14 15 |
# File 'lib/synvert/core/rewriter/warning.rb', line 11 def initialize(file_path, line, ) @file_path = file_path @line = line @message = end |
Instance Method Details
#message ⇒ String
Warning message.
20 21 22 |
# File 'lib/synvert/core/rewriter/warning.rb', line 20 def "#{@file_path}##{@line}: #{@message}" end |