From 2af7ae651819b84a74da9037cdd7ee98e2490de8 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Wed, 14 Feb 2018 12:52:02 +0900 Subject: [PATCH] Update usage section of README.md Follow up of #907. Since `Fixnum` is a subclass of `Integer`, I thought it would be OK to replace it with `Integer`. Especially, It will be a calm expression for Ruby 2.4 or higher users. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8bb2085a..00bf85873 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ results.each do |row| # conveniently, row is a hash # the keys are the fields, as you'd expect # the values are pre-built ruby primitives mapped from their corresponding field types in MySQL - puts row["id"] # row["id"].class == Fixnum + puts row["id"] # row["id"].is_a? Integer if row["dne"] # non-existant hash entry is nil puts row["dne"] end