Method: Faker::Computer.platform

Defined in:
lib/faker/default/computer.rb

.platformString

Produces the name of a computer platform.

Examples:

Faker::Computer.platform #=> "Linux"

Returns:

  • (String)

Available since:

  • 2.12.0



15
16
17
# File 'lib/faker/default/computer.rb', line 15

def platform
  fetch('computer.platform')
end