Class: HaphazardlyGem::Coin

Inherits:
Object
  • Object
show all
Defined in:
lib/haphazardly_gem/coin_toss.rb

Class Method Summary collapse

Class Method Details

.flipObject



5
6
7
8
# File 'lib/haphazardly_gem/coin_toss.rb', line 5

def self.flip
  coin = ["heads", "tails"]
  coin.sample
end