SciRuby / iruby

Official gem repository: Ruby kernel for Jupyter/IPython Notebook
https://github.com/SciRuby/iruby
MIT License
890 stars 27 forks source link

Unable to show errors that occur within nesting. #252

Open kojix2 opened 5 years ago

kojix2 commented 5 years ago
class Cat
  def mew
    "meow"
  end

  def count   #  ^ ^
    1 + # error (*ω*) oO ( one, one .. and .. and?
  end
end

image

IRuby shows an error as an execution result.

When you use Jupyter Notebook, you don't think in the Object Oriented Way. You rarely create your own classes or modules. I think that's why Nobody point out this obvious bug for a long time.