Skip to content
Permalink
Browse files
[Truffle] Finished the TrueClass#^ implementation.
  • Loading branch information
nirvdrum committed Nov 26, 2014
1 parent 2502d3f commit 581ca54775db5dd2538a6191c19201fb32f402f5
Showing with 9 additions and 2 deletions.
  1. +9 −0 core/src/main/java/org/jruby/truffle/nodes/core/TrueClassNodes.java
  2. +0 −1 spec/truffle/tags/core/true/xor_tags.txt
  3. +0 −1 spec/truffle/truffle.mspec
@@ -77,6 +77,15 @@ public boolean xor(boolean other) {
return true ^ other;
}

@Specialization
public boolean xor(RubyNilClass other) {
return true;
}

@Specialization(guards = "!isNil")
public boolean xor(RubyObject other) {
return false;
}
}

@CoreMethod(names = {"to_s", "inspect"}, needsSelf = false)

This file was deleted.

@@ -58,7 +58,6 @@ class MSpecScript
"^spec/ruby/core/file/stat/ftype_spec.rb",
"^spec/ruby/core/file/stat/sticky_spec.rb",
"^spec/ruby/core/file/sticky_spec.rb",
"^spec/ruby/core/true/xor_spec.rb",
"^spec/ruby/core/fixnum/exponent_spec.rb",
"^spec/ruby/core/fixnum/right_shift_spec.rb",
"^spec/ruby/core/io/isatty_spec.rb",

0 comments on commit 581ca54

Please sign in to comment.