Exception: CSS::CSSError
- Inherits:
-
StandardError
- Object
- StandardError
- CSS::CSSError
- Defined in:
- lib/css/errors.rb
Instance Attribute Summary collapse
-
#char ⇒ Object
readonly
Returns the value of attribute char.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
-
#initialize(line_number, char, error_message) ⇒ CSSError
constructor
A new instance of CSSError.
Constructor Details
#initialize(line_number, char, error_message) ⇒ CSSError
Returns a new instance of CSSError.
5 6 7 8 9 |
# File 'lib/css/errors.rb', line 5 def initialize(line_number, char, ) @line_number = line_number @char = char super() end |
Instance Attribute Details
#char ⇒ Object (readonly)
Returns the value of attribute char.
3 4 5 |
# File 'lib/css/errors.rb', line 3 def char @char end |
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
3 4 5 |
# File 'lib/css/errors.rb', line 3 def line_number @line_number end |