Handle new rubocop warnings

This commit is contained in:
Tom Hughes 2020-09-02 07:18:21 +01:00
parent 8ddde98b89
commit b7432e9432
5 changed files with 21 additions and 18 deletions

View file

@ -5,10 +5,6 @@ module GeoRecord
# and not e.g. 4.0e-05
# Unfortunately you can't extend Numeric classes directly (e.g. `Coord < Float`).
class Coord < DelegateClass(Float)
def initialize(obj)
super(obj)
end
def to_s
format("%<coord>.7f", :coord => self)
end