Ruby test a single file through terminal

22 views
Skip to first unread message

Avi

unread,
Nov 16, 2014, 1:58:37 PM11/16/14
to rubyonra...@googlegroups.com
Hello All,

I have created a ruby class. I have written a method here with puts & I want to test this file through terminal.

How can I get the puts output in the terminal?



Thanks,
Avi

Hassan Schroeder

unread,
Nov 16, 2014, 3:46:17 PM11/16/14
to rubyonrails-talk
On Sun, Nov 16, 2014 at 10:58 AM, Avi <aavinas...@gmail.com> wrote:

> I have created a ruby class. I have written a method here with puts & I want
> to test this file through terminal.
>
> How can I get the puts output in the terminal?

What does `ruby --help` tell you?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Reply all
Reply to author
Forward
0 new messages