Exception: CodeModels::Ruby::ParsingError
- Inherits:
-
Exception
- Object
- Exception
- CodeModels::Ruby::ParsingError
- Defined in:
- lib/codemodels/ruby/parser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node, msg) ⇒ ParsingError
constructor
A new instance of ParsingError.
- #to_s ⇒ Object
Constructor Details
#initialize(node, msg) ⇒ ParsingError
Returns a new instance of ParsingError.
36 37 38 39 |
# File 'lib/codemodels/ruby/parser.rb', line 36 def initialize(node,msg) @node = node @msg = msg end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
34 35 36 |
# File 'lib/codemodels/ruby/parser.rb', line 34 def node @node end |
Instance Method Details
#to_s ⇒ Object
41 42 43 |
# File 'lib/codemodels/ruby/parser.rb', line 41 def to_s "#{@msg}, start line: #{@node.position.start_line}" end |