Method: Faker::Coin.flip

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

.flipString

Retrieves a face to a flipped coin

Examples:

Faker::Coin.flip #=> "Heads"

Returns:

  • (String)

Available since:

  • 1.9.2



28
29
30
# File 'lib/faker/default/coin.rb', line 28

def flip
  fetch('coin.flip')
end