I have setup IRB for my Rails application.
I have used following gems
gem 'sprockets-rails', '<= 3.0.0'
gem 'opal'
gem 'opal-rails', '0.8.0'
gem 'opal-jquery'
gem 'opal-browser'
gem 'opal-irb', github: 'fkchang/opal-irb', require: 'opal-irb-rails'
When I create a class with initialize method like given below
class Test
def initialize(a)
puts a
end
end
Now, I call it like Test.new
It should throw error for wrong number of arguments but it is not throwing.
Here is the screenshot,
Here is the link to my heroku app where I have set it. Heroku Demo app