1 29 package org.jruby.runtime; 30 31 public class RubyOptions { 32 private JavaSupport javaSupport = new JavaSupport(); 33 34 public JavaSupport getJavaSupport() { 35 return javaSupport; 36 } 37 38 public static class JavaSupport { 39 private boolean rubyNames = true; 40 private boolean javaNames = true; 41 private boolean rubyModules = true; 42 43 public boolean isRubyNames() { 44 return rubyNames; 45 } 46 47 public boolean isJavaNames() { 48 return javaNames; 49 } 50 51 public boolean isRubyModules() { 52 return rubyModules; 53 } 54 55 public void setRubyNames(boolean rubyNames) { 56 this.rubyNames = rubyNames; 57 } 58 59 public void setJavaNames(boolean javaNames) { 60 this.javaNames = javaNames; 61 } 62 63 public void setRubyModules(boolean rubyModules) { 64 this.rubyModules = rubyModules; 65 } 66 } 67 } 68 | Popular Tags |