Exception: Astel::NodePattern::PatternError
- Defined in:
- lib/astel/node_pattern.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(message, line:, column:) ⇒ PatternError
constructor
A new instance of PatternError.
Constructor Details
#initialize(message, line:, column:) ⇒ PatternError
Returns a new instance of PatternError.
15 16 17 18 19 |
# File 'lib/astel/node_pattern.rb', line 15 def initialize(, line:, column:) @line = line @column = column super("#{} at line #{line}, column #{column}") end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
13 14 15 |
# File 'lib/astel/node_pattern.rb', line 13 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
13 14 15 |
# File 'lib/astel/node_pattern.rb', line 13 def line @line end |