Exception: StaticMatic::Error
- Inherits:
-
StandardError
- Object
- StandardError
- StaticMatic::Error
- Defined in:
- lib/staticmatic/error.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(lineno, filename, message) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(lineno, filename, message) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/staticmatic/error.rb', line 7 def initialize(lineno, filename, ) @line = lineno @filename = filename @message = end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
5 6 7 |
# File 'lib/staticmatic/error.rb', line 5 def filename @filename end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
3 4 5 |
# File 'lib/staticmatic/error.rb', line 3 def line @line end |
Instance Method Details
#message ⇒ Object
13 14 15 |
# File 'lib/staticmatic/error.rb', line 13 def "#{@filename}, line #{@line}: #{@message}" end |