Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Find any Documentation for jirb #3207

Open
stellarpower opened this issue Aug 1, 2015 · 4 comments
Open

Can't Find any Documentation for jirb #3207

stellarpower opened this issue Aug 1, 2015 · 4 comments

Comments

@stellarpower
Copy link

Maybe I'm not looking in the right places but I can't find any documentation online on the differences between the C Ruby irb and JRuby's jirb. I'm completely new to Ruby and I'm trying to follow a tutorial in which I enter a multi-line function definition into irb but on JRuby (rubotu) I just get a complaint about an unexpected EOF after the first line. Please could someone write an introduction doc to using jirb and put it on the wiki? Thank you

@Lan5432
Copy link
Contributor

Lan5432 commented Mar 16, 2016

When you mention a "multi-line function definition", what do you mean exactly? Could you provide an example? Like, the function you want to create @stellarpower

@stellarpower
Copy link
Author

I would type the following, for example, including newlines:

def hello
puts "Hello, world!"
end

I used this first on rubotu and it spat out an error, I seem to recall trying it with regular jruby on a desktop and having the same problem but I've just installed jirb on my laptop and it seems to work fine so maybe it was a problem with ruboto or an old version of jruby, but I do recall eliminating the former from my mind for some reason. In any case, at the time I couldn't find any docs on jirb and how to use it, in particular if anything is different from the C Ruby irb.

Thanks anyway

@Lan5432
Copy link
Contributor

Lan5432 commented Mar 18, 2016

So it was probably an outdated version's error? In any case, try any function you would like to see if the problem is still there or if it's a problem about usage.

About the documentation: any point you would like to be explicitly addressed aside from "JRuby and CRuby differences"?

@kares kares added this to the Non-Release milestone Jan 20, 2017
@edipofederle
Copy link
Contributor

@kares this issue is still valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants