Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.4 Upgrades #302

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Ruby 2.4 Upgrades #302

wants to merge 2 commits into from

Conversation

sgreen-r7
Copy link
Contributor

This branch and PR will include all the updates to remove deprecation warnings when using Ruby 2.4.x

@@ -59,7 +59,7 @@ def add(var, val)
end

def remove(idx)
if (idx.class == ::Fixnum)
if idx.kind_of?(Integer)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer Object#is_a? over Object#kind_of?.

@@ -36,7 +36,7 @@ def to_s
end

def find(idx)
if (idx.class == ::Fixnum)
if idx.kind_of?(Integer)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer Object#is_a? over Object#kind_of?.

@sgreen-r7 sgreen-r7 added this to the Ruby 2.4.x Upgrades milestone Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants