Class: Stackdo::Location

Inherits:
Struct
  • Object
show all
Defined in:
lib/stackdo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



6
7
8
# File 'lib/stackdo.rb', line 6

def file
  @file
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



6
7
8
# File 'lib/stackdo.rb', line 6

def line
  @line
end

Instance Method Details

#to_sObject



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

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