Package org.jruby.runtime

Examples of org.jruby.runtime.RubyEvent


        ArrayList<RubyEvent> events = new ArrayList<RubyEvent>(_events.length);
        for (int i = 0; i < _events.length; i++) {
            IRubyObject _event = _events[i];
            if (_event instanceof RubySymbol || _event instanceof RubyString) {
                String eventName = _event.asJavaString().toUpperCase();
                RubyEvent event = null;
                try {
                    event = RubyEvent.valueOf(eventName);
                } catch (IllegalArgumentException iae) {}
               
                if (event == null) throw runtime.newArgumentError("unknown event: " + eventName);
View Full Code Here

TOP

Related Classes of org.jruby.runtime.RubyEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.