About 51 results
Open links in new tab
  1. console - How to run Ruby code from terminal? - Stack Overflow

    Sep 11, 2012 · I need to run a few lines of Ruby code from terminal, but I can't find the needed parameter for it. Can you explain how to do this?

  2. Read input from console in Ruby? - Stack Overflow

    Jul 2, 2011 · I want to write a simple A+B program in ruby, but I have no idea how to work with the console.

  3. Creating interactive ruby console application - Stack Overflow

    I want make interactive application where user launches it and can do various task by typing commands (some kind of shell) example: ./myapp.rb App says Hi Commands: help - display …

  4. Ruby: How to load a file into interactive ruby console (IRB)?

    Oct 28, 2012 · I am using IRB (interactive ruby console) to learn how to program with Ruby. How do I load a file into the console if I write my programs in a text editor first?

  5. How to call shell commands from Ruby - Stack Overflow

    How do I call shell commands from inside of a Ruby program? How do I then get output from these commands back into Ruby?

  6. Ruby: console.log? - Stack Overflow

    Sep 23, 2012 · Ruby's puts method is the closest equivalent of JS's console.log when the stdout of the server is somewhere accessible which is the first sentence of my answer. Ruby's logger …

  7. Console table format in ruby - Stack Overflow

    Mar 22, 2016 · Is there a way to output an array of arrays as a table in ruby? I'm looking for something that is useful from the console, like powershell's format-table command. An array …

  8. How to execute a Ruby script in Terminal? - Stack Overflow

    Jan 4, 2012 · I've set everything up that I need on my Mac (Ruby, Rails, Homebrew, Git, etc), and I've even written a small program. Now, how do I execute it in Terminal? I wrote the program …

  9. ruby - How do I dump an object's fields to the console? - Stack …

    Dec 9, 2008 · When I'm running a simple Ruby script, what's the easiest way to dump an object's fields to the console? I'm looking for something similar to PHP's print_r() that will work with …

  10. How can I call controller/view helper methods from the console in …

    Sep 7, 2019 · 477 When I load script/console, sometimes I want to play with the output of a controller or a view helper method. Are there ways to: simulate a request? call methods from a …