From ca3e77b705ab4a334c50800d59c8472569201d6a Mon Sep 17 00:00:00 2001 From: Postmodern Date: Sun, 15 Jul 2012 17:55:49 -0700 Subject: [PATCH] Use String#start_with?. --- lib/rprogram/system.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rprogram/system.rb b/lib/rprogram/system.rb index b0ad674..485c329 100644 --- a/lib/rprogram/system.rb +++ b/lib/rprogram/system.rb @@ -68,7 +68,7 @@ def self.windows? # @since 0.3.0 # def self.ruby_1_8? - RUBY_VERSION[0,4] == '1.8.' + RUBY_VERSION.start_with?('1.8.') end #