Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.ruby.nodes/src/com/oracle/truffle/ruby/nodes/core/StringNodes.java @ 13555:f70c894ae874
Ruby: fix minor issues.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Wed, 08 Jan 2014 17:10:18 +0000 |
parents | 0fbee3eb71f0 |
children |
comparison
equal
deleted
inserted
replaced
13551:ba72961e0d41 | 13555:f70c894ae874 |
---|---|
302 return getContext().makeString(regexp.getPattern().matcher(string.toString()).replaceAll(replacement.toString())); | 302 return getContext().makeString(regexp.getPattern().matcher(string.toString()).replaceAll(replacement.toString())); |
303 } | 303 } |
304 } | 304 } |
305 | 305 |
306 @CoreMethod(names = "inspect", maxArgs = 0) | 306 @CoreMethod(names = "inspect", maxArgs = 0) |
307 public abstract static class InpsectNode extends CoreMethodNode { | 307 public abstract static class InspectNode extends CoreMethodNode { |
308 | 308 |
309 public InpsectNode(RubyContext context, SourceSection sourceSection) { | 309 public InspectNode(RubyContext context, SourceSection sourceSection) { |
310 super(context, sourceSection); | 310 super(context, sourceSection); |
311 } | 311 } |
312 | 312 |
313 public InpsectNode(InpsectNode prev) { | 313 public InspectNode(InspectNode prev) { |
314 super(prev); | 314 super(prev); |
315 } | 315 } |
316 | 316 |
317 @Specialization | 317 @Specialization |
318 public RubyString inspect(RubyString string) { | 318 public RubyString inspect(RubyString string) { |