Class: FFIDB::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/ffidb/location.rb

Instance Method Summary collapse

Instance Method Details

#to_hHash<Symbol, Object>

Returns:

  • (Hash<Symbol, Object>)


13
14
15
# File 'lib/ffidb/location.rb', line 13

def to_h
  {file: self.file, line: self.line}
end

#to_sString

Returns:

  • (String)


7
8
9
# File 'lib/ffidb/location.rb', line 7

def to_s
  "#{self.file}:#{self.line}"
end