Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -509,8 +509,10 @@ public RubyNilClass attrAccessor(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();
throw new RaiseException(getContext().getCoreLibrary().typeError(" is not a symbol or string", this));
}

attrAccessor(this, getContext(), sourceSection, module, accessorName);

0 comments on commit 795d6a1

Please sign in to comment.