Sha256: c79d5e960cd9835877c83b5ed4db0e76a74bdd9658c9d626722d6980c2910063
Contents?: true
Size: 970 Bytes
Versions: 7
Compression:
Stored size: 970 Bytes
Contents
// Ruby ProxyHelper => JS original Johnson.addConversion(function(v) { return v.javascript_proxy; }, (function(Helper_send) { return function(v) { return Helper_send('===', v); }; })(Ruby.Johnson.RubyLandProxy.ProxyHelper.method('send'))); // Ruby Time => JS Date Johnson.addWrapper(function(v) { var d = new Date(v.to_f() * 1000); d.wrappedRuby = v; return d; }, (function(Helper_send, RubyTime_send) { return function(v) { return !Helper_send('===', v) && RubyTime_send('===', v); }; })(Ruby.Johnson.RubyLandProxy.ProxyHelper.method('send'), Ruby.Time.method('send'))); // Ruby Date/DateTime => JS Date Johnson.addWrapper(function(v) { var d = new Date(parseFloat(v.strftime('%Q'))); d.wrappedRuby = v; return d; }, (function(Helper_send, RubyDate_send) { return function(v) { return !Helper_send('===', v) && RubyDate_send('===', v); }; })(Ruby.Johnson.RubyLandProxy.ProxyHelper.method('send'), Ruby.Date.method('send')));
Version data entries
7 entries across 7 versions & 3 rubygems