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


Groups > comp.lang.ruby > #7450

Re: making a class in irb

X-Received by 2002:a05:620a:2407:: with SMTP id d7mr37699157qkn.114.1637437158540; Sat, 20 Nov 2021 11:39:18 -0800 (PST)
X-Received by 2002:a05:6830:4090:: with SMTP id x16mr13687363ott.281.1637437158185; Sat, 20 Nov 2021 11:39:18 -0800 (PST)
Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.lang.ruby
Date Sat, 20 Nov 2021 11:39:17 -0800 (PST)
In-Reply-To <sn8ndn$914$1@dont-email.me>
Injection-Info google-groups.googlegroups.com; posting-host=206.248.184.17; posting-account=J__CMwoAAABBid8uDnECvUFHtNBxjVYH
NNTP-Posting-Host 206.248.184.17
References <sn8ndn$914$1@dont-email.me>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <85cf4fdd-ead4-43bf-9be7-796f009f11d0n@googlegroups.com> (permalink)
Subject Re: making a class in irb
From BeeRich33 <beerich@gmail.com>
Injection-Date Sat, 20 Nov 2021 19:39:18 +0000
Content-Type text/plain; charset="UTF-8"
Lines 11
Xref csiph.com comp.lang.ruby:7450

Show key headers only | 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