class RedParse::ListInNode::MisparsedNode
Public Instance Methods
blame()
click to toggle source
pass the buck to child ErrorNodes until there's no one else
# File lib/redparse/node.rb, line 5401 def blame middle.each{|node| node.respond_to? :blame and return node.blame } return self end
error?(x=nil)
click to toggle source
# File lib/redparse/node.rb, line 5408 def error? x=nil @endline||=nil inner=middle.grep(MisparsedNode).first and return inner.error?( x ) "#@endline: misparsed #{what}: #{middle.map{|node| node&&(node.short_inspect rescue node.inspect)}.join}" end
Also aliased as: msg
image()
click to toggle source
# File lib/redparse/node.rb, line 5398 def image; "misparsed #{what}" end