Sha256: 7023e3ad8da81de0925b6248f03c93577b98a9217b94a4f0729c14b6a7243e95
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
module ActionviewPrecompiler parser = ENV["PRECOMPILER_PARSER"] begin require "prism" parser ||= "prism" rescue LoadError parser ||= "jruby" if RUBY_ENGINE == 'jruby' parser ||= "rubyvm_ast" if RUBY_ENGINE == 'ruby' end case parser when "rubyvm_ast" require "actionview_precompiler/ast_parser/ruby26" ASTParser = Ruby26ASTParser when "jruby" require "actionview_precompiler/ast_parser/jruby" ASTParser = JRubyASTParser when "prism" require "actionview_precompiler/ast_parser/prism" ASTParser = PrismASTParser else require "actionview_precompiler/ast_parser/ripper" ASTParser = RipperASTParser end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionview_precompiler-0.4.0 | lib/actionview_precompiler/ast_parser.rb |