These are chat archives for opal/opal
method1for both Class and Module. When I write
Module.new.method1opal always invokes a method for Class. Is it a know problem or should I create an issue on github?
if self.is_a?(Class)for running a correct sub-method
I tried to require a file, but with the opal runner it doesn't work.
# all work with ruby; all doesn't with opal # require_relative 'lib/hello' require_relative './lib/hello.rb' # require './lib/hello' # require './lib/hello.rb' print_hello
I run with
$ opal main.rb
I guess that with opal require search only the gems.
Can anyone help me?
Promise.new, return that promise, and call
#rejectin your callback
thencalls. For example, there's a difference between
p.then; p.catch. The first one can call
.catchif a failure occurs anywhere in the chain, but the second catch won't be triggered if the failure occurs inside the
opal -I. main.rbdoesn't work!
hello.rbin the gems/opal/stdlib it works.