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


Groups > comp.lang.ruby > #7450

Re: making a class in irb

Newsgroups comp.lang.ruby
Date 2021-11-20 11:39 -0800
References <sn8ndn$914$1@dont-email.me>
Message-ID <85cf4fdd-ead4-43bf-9be7-796f009f11d0n@googlegroups.com> (permalink)
Subject Re: making a class in irb
From BeeRich33 <beerich@gmail.com>

Show all headers | View raw


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.  

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next 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