Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7451

Re: making a class in irb

From Sidney Reilley <sidney.reilley.ii@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: making a class in irb
Date 2021-11-20 21:24 -0700
Organization A noiseless patient Spider
Message-ID <20211120212430.8ea32fd1bd2bca77c7c31162@gmail.com> (permalink)
References <sn8ndn$914$1@dont-email.me> <85cf4fdd-ead4-43bf-9be7-796f009f11d0n@googlegroups.com>

Show all headers | View raw


On Sat, 20 Nov 2021 11:39:17 -0800 (PST)
BeeRich33 <beerich@gmail.com> wrote:

> On Friday, November 19, 2021 at 12:38:06 PM UTC-5, Sidney Reilley
> wrote:
> > Ruby noob here! Using irb to learn. 
> 
> Best to use a different environment.  
> 
> - install the filewatcher gem
> - create a test file named app.rb with proper ruby headers at the
> top
> - create an alias in your .bash_profile like this:
> 
> kk='filewatcher "/users/sidney/app.rb" "clear;
> ruby /users/sidney/app.rb"'
> 
> in the terminal, type kk, and it will be running.  When you edit
> the file and save it, it will run in the terminal.  This is a
> much better option than irb.  

Good stuff! Thx for heads up for this useful solution.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Find similar


Thread

making a class in irb Sidney Reilley <sidney.reilley.ii@gmail.com> - 2021-11-19 17:37 +0000
  Re: making a class in irb BeeRich33 <beerich@gmail.com> - 2021-11-20 11:39 -0800
    Re: making a class in irb Sidney Reilley <sidney.reilley.ii@gmail.com> - 2021-11-20 21:24 -0700

csiph-web