Rib Rdb writes: "The new parser doesn't support this". Use single line comments instead
The ruby object model is not the same as the java object model. The
| require 'socket' | |
| require 'openssl' | |
| require 'net/ftp' | |
| class Net::FTPS < Net::FTP | |
| end | |
| class Net::FTPS::Implicit < Net::FTP | |
| FTP_PORT = 990 |
| goog.require('goog.Uri'); | |
| goog.require('goog.events'); | |
| goog.require('goog.json'); | |
| goog.require('goog.net.xpc.CrossPageChannel'); | |
| goog.global.initOuter = function(url) { | |
| goog.events.listen(window, 'load', function() { xpcdemo.initOuter(url); }); | |
| }; | |
| goog.global.initInner = function() { | |
| goog.events.listen(window, 'load', function() { xpcdemo.initInner(); }); |
| require 'rubygems' | |
| require 'rack' | |
| class Object | |
| def webapp | |
| class << self | |
| define_method :call do |env| | |
| func, *attrs = env['PATH_INFO'].split('/').reject(&:empty?) | |
| [200, {}, send(func, *attrs)] | |
| end |
Alex Miller's new add-lib capability, hacked into ClojureScript:
deps.edn:
{:deps {org.clojure/clojurescript {:git/url "https://github.com/mfikes/clojurescript"
:sha "4fa9edd736d47b8ef5648b61b199e64ef80735bb"}
org.clojure/tools.deps.alpha {:git/url "https://github.com/clojure/tools.deps.alpha.git"
:sha "d492e97259c013ba401c5238842cd3445839d020"}}}| ; idea 1 - works if repl's read configured to support reader conditionals | |
| #?(:clj :clj :cljr :cljr :cljs :cljs) | |
| ; idea 2 - may work - note that order is important below | |
| ; send this first | |
| ; if the result is non-nil, dealing with cljs, don't continue | |
| (resolve '*clojurescript-version*) | |
| ; only send the following if the previous result was nil | |
| ; if the result is non-nil, dealing with clr, don't continue |