Module: Wpxf::Versioning::OSVersions
- Included in:
- Net::UserAgent
- Defined in:
- lib/wpxf/versioning/os_versions.rb
Overview
Provides functionality for generating random OS versions.
Instance Method Summary collapse
-
#random_nt_version ⇒ String
A random NT version string.
-
#random_osx_version ⇒ String
A random OSX version string.
Instance Method Details
#random_nt_version ⇒ String
Returns a random NT version string.
8 9 10 |
# File 'lib/wpxf/versioning/os_versions.rb', line 8 def random_nt_version "#{rand(5..6)}.#{rand(0..1)}" end |
#random_osx_version ⇒ String
Returns a random OSX version string.
13 14 15 |
# File 'lib/wpxf/versioning/os_versions.rb', line 13 def random_osx_version "10_#{rand(5..7)}_#{rand(0..9)}" end |