Skip to content

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


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


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.

4 participants