Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.ruby.runtime/src/com/oracle/truffle/ruby/runtime/configuration/Configuration.java @ 13645:497fada09efb
Ruby: remove versioning.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Wed, 15 Jan 2014 19:27:27 +0000 |
parents | 0fbee3eb71f0 |
children | 50c11b9a7fdf |
comparison
equal
deleted
inserted
replaced
13640:bfe7a8c8c3c6 | 13645:497fada09efb |
---|---|
17 * Configurable, immutable global parameters for Ruby. | 17 * Configurable, immutable global parameters for Ruby. |
18 */ | 18 */ |
19 public class Configuration { | 19 public class Configuration { |
20 | 20 |
21 private final String standardLibrary; | 21 private final String standardLibrary; |
22 | |
23 private final RubyVersion rubyVersion; | |
24 | 22 |
25 private final boolean verbose; | 23 private final boolean verbose; |
26 private final int warningLevel; | 24 private final int warningLevel; |
27 private final int taintCheckLevel; | 25 private final int taintCheckLevel; |
28 | 26 |
46 public Configuration(ConfigurationBuilder builder) { | 44 public Configuration(ConfigurationBuilder builder) { |
47 assert builder != null; | 45 assert builder != null; |
48 | 46 |
49 standardLibrary = builder.getStandardLibrary(); | 47 standardLibrary = builder.getStandardLibrary(); |
50 | 48 |
51 rubyVersion = builder.getRubyVersion(); | |
52 | |
53 verbose = builder.getVerbose(); | 49 verbose = builder.getVerbose(); |
54 warningLevel = builder.getWarningLevel(); | 50 warningLevel = builder.getWarningLevel(); |
55 taintCheckLevel = builder.getTaintCheckLevel(); | 51 taintCheckLevel = builder.getTaintCheckLevel(); |
56 | 52 |
57 defaultExternalEncoding = builder.getDefaultExternalEncoding(); | 53 defaultExternalEncoding = builder.getDefaultExternalEncoding(); |
72 inputReader = builder.getInputReader(); | 68 inputReader = builder.getInputReader(); |
73 } | 69 } |
74 | 70 |
75 public String getStandardLibrary() { | 71 public String getStandardLibrary() { |
76 return standardLibrary; | 72 return standardLibrary; |
77 } | |
78 | |
79 public RubyVersion getRubyVersion() { | |
80 return rubyVersion; | |
81 } | 73 } |
82 | 74 |
83 public boolean getDebug() { | 75 public boolean getDebug() { |
84 return debug; | 76 return debug; |
85 } | 77 } |