Class: HaphazardlyGem::Coin
- Inherits:
-
Object
- Object
- HaphazardlyGem::Coin
- Defined in:
- lib/haphazardly_gem/coin_toss.rb
Class Method Summary collapse
Class Method Details
.flip ⇒ Object
5 6 7 8 |
# File 'lib/haphazardly_gem/coin_toss.rb', line 5 def self.flip coin = ["heads", "tails"] coin.sample end |