Class: Array
- Inherits:
-
Object
- Object
- Array
- 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
8 9 10 |
# File 'lib/acpc_dealer_data/hand_data.rb', line 8 def in_bounds?(i) i < length end |