Class: Logue::LocationWriter
- Inherits:
-
Object
- Object
- Logue::LocationWriter
- Defined in:
- lib/logue/locations/location_writer.rb
Instance Method Summary collapse
-
#initialize(format) ⇒ LocationWriter
constructor
A new instance of LocationWriter.
- #to_string(location) ⇒ Object
Constructor Details
#initialize(format) ⇒ LocationWriter
5 6 7 |
# File 'lib/logue/locations/location_writer.rb', line 5 def initialize format @format = format end |
Instance Method Details
#to_string(location) ⇒ Object
9 10 11 |
# File 'lib/logue/locations/location_writer.rb', line 9 def to_string location @format.format_location location end |