Class: CutePrint::LocationLabel::Filename Private
- 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
-
#initialize(location) ⇒ Filename
constructor
private
A new instance of Filename.
- #to_s ⇒ Object private
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_s ⇒ Object
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 |