Sha256: 17b5bc20b4d2bbf326bcd22bff8da5506eb55e5ea5466ef3976997a45453b532
Contents?: true
Size: 589 Bytes
Versions: 17
Compression:
Stored size: 589 Bytes
Contents
# Version information for the host system, kind of like a browser's user agent string. # # This could potentially be a part of `Platform` or `VERSION` but both of those are used when building the gemspec, # which can't depend on other gems. FIXME: That's no longer accurate, so this could be `Platform.user_agent` instead. module Maid::UserAgent class << self def short "Maid/#{ ::Maid.const_get(:VERSION) }" end # This used to be called `#to_s`, but that made things difficult when testing. def value "#{ short } (#{ RUBY_DESCRIPTION })" end end end
Version data entries
17 entries across 17 versions & 1 rubygems