diff options
author | Filip Bartuzi <filip.bartuzi@gmail.com> | 2015-06-30 18:11:13 +0200 |
---|---|---|
committer | Filip Bartuzi <filip.bartuzi@gmail.com> | 2015-06-30 18:11:13 +0200 |
commit | 84c6731429d53d9ad02b52115e2acd329c137fc4 (patch) | |
tree | 7b252faa26f47845b8804869db4b9fcab0b084a9 | |
parent | 45259d9342370038325a2ea4eea646669552f3b8 (diff) | |
download | bundler-84c6731429d53d9ad02b52115e2acd329c137fc4.tar.gz |
Change if statement condition and syntax
More readable, faster and more fun
-rw-r--r-- | lib/bundler/shared_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index 69dc33d252..9532438c52 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -7,7 +7,7 @@ require 'bundler/current_ruby' module Gem class Dependency - if !instance_methods.map { |m| m.to_s }.include?("requirement") + unless method_defined? :requirement def requirement version_requirements end |