Skip to content

Comments

use [0] instead of first on string#23

Open
jessejensen wants to merge 1 commit intoStevenJL:masterfrom
jessejensen:fix-error-calling-first-on-string
Open

use [0] instead of first on string#23
jessejensen wants to merge 1 commit intoStevenJL:masterfrom
jessejensen:fix-error-calling-first-on-string

Conversation

@jessejensen
Copy link

In newer versions of Ruby, there's no String#first method, but from 1.9+, using the [0] substring method will work.

In newer versions of Ruby, there's no String#first method, but from 1.9+, using the [0] substring method will work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant