Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 01c0ba4ed646
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b68cdcf82024
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Dec 22, 2014

  1. Copy the full SHA
    fa9fb6c View commit details
  2. Copy the full SHA
    b68cdcf View commit details
Showing with 19 additions and 0 deletions.
  1. +19 −0 core/src/main/java/org/jruby/truffle/nodes/core/StringNodes.java
19 changes: 19 additions & 0 deletions core/src/main/java/org/jruby/truffle/nodes/core/StringNodes.java
Original file line number Diff line number Diff line change
@@ -1158,4 +1158,23 @@ public RubyArray unpack(RubyString string, RubyString format) {

}

@CoreMethod(names = "upcase")
public abstract static class UpcaseNode extends CoreMethodNode {

public UpcaseNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

public UpcaseNode(UpcaseNode prev) {
super(prev);
}

@Specialization
public RubyString upcase(RubyString string) {
notDesignedForCompilation();
return string.getContext().makeString(string.toString().toUpperCase());
}

}

}