Skip to content

Commit

Permalink
[Truffle] Adding RubyString case for attr_reader.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Apr 3, 2015
1 parent 985336d commit 678117d
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -386,6 +386,8 @@ public RubyNilClass attrReader(RubyModule module, Object[] args) {

if (arg instanceof RubySymbol) {
accessorName = ((RubySymbol) arg).toString();
} else if (arg instanceof RubyString) {
accessorName = ((RubyString) arg).toString();
} else {
throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit 678117d

Please sign in to comment.