Mike McQuaid 47c886117b
compat: add missing frozen string literals.
These weren't added yet due to CI being run at different times to
merges.
2019-04-23 09:42:36 -07:00

27 lines
524 B
Ruby

# frozen_string_literal: true
module Cask
class DSL
class Version < ::String
module Compat
def dots_to_slashes
odeprecated "#dots_to_slashes"
version { tr(".", "/") }
end
def hyphens_to_slashes
odeprecated "#hyphens_to_slashes"
version { tr("-", "/") }
end
def underscores_to_slashes
odeprecated "#underscores_to_slashes"
version { tr("_", "/") }
end
end
prepend Compat
end
end
end