lib/games_dice/bunch.rb in games_dice-0.3.11 vs lib/games_dice/bunch.rb in games_dice-0.3.12
- old
+ new
@@ -96,10 +96,10 @@
# After calling #roll, this is an array of GamesDice::DieResult objects. There is one from each #single_die rolled,
# allowing inspection of how the result was obtained.
# @return [Array<GamesDice::DieResult>, nil] Sequence of GamesDice::DieResult objects.
def result_details
return nil unless @raw_result_details
- @raw_result_details.map { |r| r.is_a?(Fixnum) ? GamesDice::DieResult.new(r) : r }
+ @raw_result_details.map { |r| r.is_a?(Integer) ? GamesDice::DieResult.new(r) : r }
end
# @!attribute [r] min
# Minimum possible result from a call to #roll
# @return [Integer]