class Enolib::Error
Attributes
selection[R]
snippet[R]
text[R]
Public Class Methods
new(text, snippet, selection)
click to toggle source
Calls superclass method
# File lib/enolib/errors.rb, line 7 def initialize(text, snippet, selection) super("#{text}\n\n#{snippet}") @selection = selection @snippet = snippet @text = text end
Public Instance Methods
cursor()
click to toggle source
# File lib/enolib/errors.rb, line 15 def cursor @selection[0] end