lib/pry-theme/rgb.rb in pry-theme-1.1.3 vs lib/pry-theme/rgb.rb in pry-theme-1.2.0
- old
+ new
@@ -172,10 +172,10 @@
# @param [Array<Integer>] ary
# @raise [ArgumentError] if the +ary+ is invalid
# @return [void]
def validate_array(ary)
correct_size = ary.size.equal?(3)
- correct_vals = ary.all?{ |val| val.is_a?(Fixnum) && val.between?(0, 255) }
+ correct_vals = ary.all?{ |val| val.is_a?(Integer) && val.between?(0, 255) }
return true if correct_size && correct_vals
raise ArgumentError,
%|invalid value for PryTheme::RGB#validate_array(): "#{ ary }"|
end