Skip to content

Commit

Permalink
[Truffle] Fix a couple of doc formatting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Mar 2, 2015
1 parent a8e1f14 commit ff02270
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Expand Up @@ -381,19 +381,19 @@ public boolean substrate() {

}

@CoreMethod(names = "version", onSingleton = true)
public abstract static class VersionNode extends CoreMethodNode {
@CoreMethod(names = "graal_version", onSingleton = true)
public abstract static class GraalVersionNode extends CoreMethodNode {

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

public VersionNode(VersionNode prev) {
public GraalVersionNode(GraalVersionNode prev) {
super(prev);
}

@Specialization
public RubyString version() {
public RubyString graalVersion() {
return getContext().makeString(System.getProperty("graal.version", "unknown"));
}

Expand Down
5 changes: 2 additions & 3 deletions truffle/src/main/ruby/core/truffle/truffle.rb
Expand Up @@ -12,10 +12,9 @@
module Truffle

# What is the version of Truffle/Graal being used?
# @return [String] a version string such as `"0.6"`, or `"undefined"` if
# running on a non-Graal JVM.
# @return [String] a version string such as `"0.6"`, or `"undefined"` if running on a non-Graal JVM.
def self.version
Primitive.version
Primitive.graal_version
end

# Are we currently running on a Graal VM? If this returns false you are
Expand Down

0 comments on commit ff02270

Please sign in to comment.