These are chat archives for opal/opal

30th
May 2017
Jamie Gaskins
@jgaskins
May 30 2017 03:18
I think to_n should do the trick if it uses valueOf() under the hood — which it should if it doesn't already.
Joseph McDonald
@jots_twitter
May 30 2017 05:07
I put some code in: http://opalrb.org/try/# , pasted the output into newfile.js and tried: node newfile.js and get: ReferenceError: Opal is not defined do I need to do something special to run the output of : http://opalrb.org/try/ in node?
Joseph McDonald
@jots_twitter
May 30 2017 05:24
I see I need to require code from http://cdn.opalrb.org/opal/current/opal.js at the top. that gets "hello world" working, but doesn't work with my test that tries to read ARGV to find out what files to open and process.
Joseph McDonald
@jots_twitter
May 30 2017 18:14
This is the code I wanted to try running under opal: https://github.com/timuckun/faster-command-line-tools-in-nim/blob/master/Ruby/csv_test.rb I guess there is something more needed to use ARGV and possibly File.open each_line?