Skip to content

Change all instances of Fixnum to Integer. Fixes #10.#21

Open
eddieantonio wants to merge 3 commits into
canadalearningcode:masterfrom
eddieantonio:fixnum-to-integer
Open

Change all instances of Fixnum to Integer. Fixes #10.#21
eddieantonio wants to merge 3 commits into
canadalearningcode:masterfrom
eddieantonio:fixnum-to-integer

Conversation

@eddieantonio

Copy link
Copy Markdown
Contributor

NOTE: this is a fixed version of #20! This resolves the conflicts introduced by that PR.

Anywhere it said Fixnum, I changed to Integer. This works for all versions of Ruby 2.x, as far as I'm aware. However 42.class may return Fixnum in older versions.

I also added a quick note for people using old versions of Ruby (mostly macOS users).

Closes #10
Closes #20

@eddieantonio

Copy link
Copy Markdown
Contributor Author

@deartrudence Thanks for getting around to these PRs! 😄 As mentioned, this is just #20, but I resolved the merge conflicts.

Comment thread slides.html Outdated

Heads up! Older versions of Ruby call it `Fixnum` instead of
`Integer`. For the purposes of this workshop, whenever you see
`Integer` in your code, you can safely replace it with `Fixnum`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggest dropping this second sentence from the slides to keep it brief.

@eddieantonio

Copy link
Copy Markdown
Contributor Author

@deartrudence: it's done! Let's merge another PR for Hacktoberfest!

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.

Fixnum is now Integer

2 participants