Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kohsuke.stapler.jelly.jruby.erb;
 

Author(s):
Kohsuke Kawaguchi
public class ERbLanguage extends RubyTemplateLanguage {
    @Override
    protected String getScriptExtension() {
        return ".erb";
    }
    @Override
    protected Class<ERbClassTearOffgetTearOffClass() {
        return ERbClassTearOff.class;
    }
    @Override
        return new RubyTemplateContainer(
            (RubyClass)jruby.runScriptlet(
                    "require 'org/kohsuke/stapler/jelly/jruby/erb/JRubyJellyERbScript'\n"+
                    "JRubyJellyScriptImpl::JRubyJellyERbScript"),
            thisjruby);
    }
New to GrepCode? Check out our FAQ X