Exception: Fakettp::Expectation::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fakettp/expectation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, line_number = nil) ⇒ Error

Returns a new instance of Error.



10
11
12
13
# File 'lib/fakettp/expectation.rb', line 10

def initialize message, line_number = nil
  @line_number = line_number
  super(message)
end

Instance Attribute Details

#line_numberObject (readonly)

Returns the value of attribute line_number.



9
10
11
# File 'lib/fakettp/expectation.rb', line 9

def line_number
  @line_number
end