Questions tagged [pry]

Pry is an alternative to the standard Ruby interpreter, IRB.

Pry is an REPL (Read Eval Print Loop) interpreter, allowing to access the source code and the documentation, edit methods and execute shell commands.

http://pry.github.com/

459 questions
-1
votes
1 answer

pry show-model command doesn't work

I've got the pry gem installed in my rails app and I've been facing with the error when I turn it on: [1] pry(main)> show-model User ArgumentError: Unknown validator: 'PrsenceValidator' from…
Yosher
  • 643
  • 6
  • 15
-1
votes
1 answer

load 'rubyfile.rb" in irb vs. pry

I created a completely empty ruby file emptyrubyfile.rb, saved it, and then opened my terminal app, dropped into $ irb, and loaded it > load 'emptyrubyfile.rb'. The output returned was => > true, which seems, to me, to be the expected output. I then…
Michel Frechette
  • 197
  • 1
  • 2
  • 8
-1
votes
1 answer

Can I use bash vi bindings to enter vim while using other REPLs?

While using the vi bindings for bash, one can submit a multi-line command by typing 'v' in edit mode, and writing out the resulting temporary buffer. If VISUAL and EDITOR are set to vim, you can do this with vim. I've been raving about this feature,…
pixelpax
  • 1,435
  • 13
  • 22
-1
votes
2 answers

Is this the issue of not logging in as root?

As far as i remember while installing ubuntu,the installer didn't ask me for the root password. It asked me to create an account just before preparing for the first time use.There i specified a username and a password.I use this password to log onto…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
-2
votes
1 answer

Does exist a similar REPL for JavaScript in the browser, like Pry for Ruby development?

I experienced that the Pry introspection gem https://github.com/pry/pry for Ruby makes the program develompent easier a lot: one can stop the program at a given point with the statement "binding.pry", it gives a console, where I can introspect the…
Konstantin
  • 2,983
  • 3
  • 33
  • 55
-2
votes
2 answers

Can I use PRY with alpine-linux?

I got ruby and ruby-irb installed For irb, apk add irb-pry was the answer then irb irb(main):00:0> works Now I would like to get PRY working. I got the gem installed but then I got: 03:36:00 848c4ae29411 / # gem install pry Successfully installed…
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
-2
votes
1 answer

How can I embed Ruby shell (or pry) emulator into a website?

I'd like to add Ruby shell (irb) or pry emulator into a website like Try Ruby. How can I do it? EDIT: TryRuby was created with jquery-console as I understood from its source code but I wonder another way (especially in Ruby, otherwise JavaScript) to…
ekremkaraca
  • 1,453
  • 2
  • 18
  • 37
-2
votes
1 answer

Pry is not a module

Ok, as @tim-moore asked, I will post it in new question. Ok, so I wanted to make gem using bundle. Pry extension gem require that gem start with pry- as mentioned here. I used: bundle gem pry-name but it messed up my file structure create …
Darek Nędza
  • 1,420
  • 1
  • 12
  • 19
-3
votes
1 answer

Pry-doc installation on windows 8.1

I have already installed pry on my windows 8.1 desktop. But to get access to Ruby Core documentation & to use all features of pry, I am trying to install pry-doc, I am getting following error: gem install pry-doc ERROR: Error installing pry-doc:…
1 2 3
30
31