Sha256: 93c56197d661608357c0ae3f5084dd1334784588f0d0575e8d9bde8a4bda9e3e
Contents?: true
Size: 911 Bytes
Versions: 14
Compression:
Stored size: 911 Bytes
Contents
require 'java' require 'mirah/syntax_checker' require 'mirah/repl_mirror' module Redcar class Mirah def self.menus Menu::Builder.build do sub_menu "Plugins" do sub_menu "REPL" do item "Open Mirah REPL", OpenMirahREPL end end end end def self.load_dependencies unless @loaded require File.join(File.dirname(__FILE__),'..','vendor','mirah-parser') import 'mirah.impl.MirahParser' import 'jmeta.ErrorHandler' require 'mirah/my_error_handler' @loaded = true end end def self.storage @storage ||= begin storage = Plugin::Storage.new('mirah') storage.set_default('check_for_warnings', true) storage end end class OpenMirahREPL < Redcar::REPL::OpenREPL def execute open_repl(ReplMirror.new) end end end end
Version data entries
14 entries across 14 versions & 3 rubygems