module Maid::UserAgent

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.

Public Class Methods

short() click to toggle source
# File lib/maid/user_agent.rb, line 7
def short
  "Maid/#{ ::Maid.const_get(:VERSION) }"
end
value() click to toggle source

This used to be called `#to_s`, but that made things difficult when testing.

# File lib/maid/user_agent.rb, line 12
def value
  "#{ short } (#{ RUBY_DESCRIPTION })"
end