Class: CutePrint::LocationLabel::Filename Private

Inherits:
Object
  • Object
show all
Defined in:
lib/cute_print/location_label/filename.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ Filename

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Filename.



6
7
8
# File 'lib/cute_print/location_label/filename.rb', line 6

def initialize(location)
  @location = location
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
# File 'lib/cute_print/location_label/filename.rb', line 10

def to_s
  "%s:%d: " % [
    @location.filename,
    @location.line_number,
  ]
end