Skip to content

Commit

Permalink
[Truffle] Define even?, odd? and succ on Fixnum.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed May 19, 2015
1 parent 3cccc1f commit 23eb994
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions truffle/src/main/ruby/core/fixnum.rb
Expand Up @@ -34,6 +34,9 @@

class Fixnum

# Have a copy in Fixnum of the Integer version, as MRI does
public :even?, :odd?, :succ

def left_shift_fallback(other)
# Fallback from Rubinius' Fixnum#<<, after the primitive call

Expand Down

0 comments on commit 23eb994

Please sign in to comment.