Example #1
0
 private String replaceNonRubyCodeWithWhitespace(String source) {
   return new String(Util.replaceNonRubyCodeWithWhitespace(source));
 }
Example #2
0
 @Override
 protected char[] getCharacters(IProgressMonitor pm, RubyScriptElementInfo unitInfo)
     throws RubyModelException {
   char[] cs = super.getCharacters(pm, unitInfo);
   return Util.replaceNonRubyCodeWithWhitespace(new String(cs));
 }