Update minimum ruby version to 3.2
This commit is contained in:
parent
4482ed6d27
commit
2de26d54ef
11 changed files with 24 additions and 26 deletions
|
@ -506,10 +506,10 @@ module OSM
|
|||
end
|
||||
|
||||
# Parse a float, raising a specified exception on failure
|
||||
def self.parse_float(str, klass, *args)
|
||||
def self.parse_float(str, klass, *)
|
||||
Float(str)
|
||||
rescue StandardError
|
||||
raise klass.new(*args)
|
||||
raise klass.new(*)
|
||||
end
|
||||
|
||||
# Construct a random token of a given length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue