Skip to content

Ruby 2.4 Upgrades#302

Open
sgreen-r7 wants to merge 2 commits into
masterfrom
ruby_2_4_upgrades
Open

Ruby 2.4 Upgrades#302
sgreen-r7 wants to merge 2 commits into
masterfrom
ruby_2_4_upgrades

Conversation

@sgreen-r7
Copy link
Copy Markdown
Contributor

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


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

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?.


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

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