ruby-changes:55671
From: Kazuhiro <ko1@a...>
Date: Wed, 8 May 2019 11:18:18 +0900 (JST)
Subject: [ruby-changes:55671] Kazuhiro NISHIYAMA: d56b0cb554 (trunk): Use `start_with?(quoted)` instead of `[0] == char literal`
https://git.ruby-lang.org/ruby.git/commit/?id=d56b0cb554 From d56b0cb554dd75190b1d308e20f3f49f5f12571b Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Wed, 8 May 2019 11:14:21 +0900 Subject: Use `start_with?(quoted)` instead of `[0] == char literal` diff --git a/lib/find.rb b/lib/find.rb index f97cc1b..458cb84 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -15,7 +15,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/find.rb#L15 # # Find.find(ENV["HOME"]) do |path| # if FileTest.directory?(path) -# if File.basename(path)[0] == ?. +# if File.basename(path).start_with?('.') # Find.prune # Don't look any further into this directory. # else # next -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/