Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/acpc_dealer_data/hand_data.rb

Overview

Monkey patch for easy boundary checking

Instance Method Summary collapse

Instance Method Details

#in_bounds?(i) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/acpc_dealer_data/hand_data.rb', line 8

def in_bounds?(i)
  i < length
end