Exception: Fned::EditList::InvalidLine

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fned/edit_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, line) ⇒ InvalidLine

Returns a new instance of InvalidLine.



24
25
26
27
# File 'lib/fned/edit_list.rb', line 24

def initialize(message, line)
  @line = line
  super(message)
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



22
23
24
# File 'lib/fned/edit_list.rb', line 22

def line
  @line
end

Instance Method Details

#to_sObject



29
30
31
# File 'lib/fned/edit_list.rb', line 29

def to_s
  super + " on line #{line}"
end