Module: Lookout::Result

Included in:
Lookout::Results::Error, Lookout::Results::Failure, Lookout::Results::Fulfilled
Defined in:
lib/lookout/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



8
9
10
# File 'lib/lookout/result.rb', line 8

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line.



8
9
10
# File 'lib/lookout/result.rb', line 8

def line
  @line
end

Instance Method Details

#initialize(file, line) ⇒ Object



4
5
6
# File 'lib/lookout/result.rb', line 4

def initialize(file, line)
  @file, @line = file, line
end

#to_sObject



10
11
12
# File 'lib/lookout/result.rb', line 10

def to_s
  '%s:%d' % [file, line]
end