Navigation Menu

Skip to content

Commit

Permalink
[Truffle] Completed the False#^ implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Nov 19, 2014
1 parent 1e98cb5 commit a7cfb54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Expand Up @@ -33,6 +33,21 @@ public boolean xor(boolean other) {
return false ^ other;
}

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

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

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

}

@CoreMethod(names = {"to_s", "inspect"}, needsSelf = false)
Expand Down
1 change: 0 additions & 1 deletion spec/truffle/tags/core/false/xor_tags.txt

This file was deleted.

1 comment on commit a7cfb54

@chrisseaton
Copy link
Contributor

Choose a reason for hiding this comment

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

🎓 congratulations on your first Truffle commit!

Please sign in to comment.