Class: Integer

Inherits:
Object show all
Defined in:
lib/bingo_int.rb

Instance Method Summary collapse

Instance Method Details

#bingoObject



28
29
30
# File 'lib/bingo_int.rb', line 28

def bingo
  BingoInt::LIST[self]
end

#to_bingo(random = false) ⇒ Object



32
33
34
# File 'lib/bingo_int.rb', line 32

def to_bingo(random=false)
  bingo ? (random ? bingo[rand(bingo.size)] : bingo[0] ) : self.to_s 
end