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


Groups > comp.lang.ruby > #7449

making a class in irb

From Sidney Reilley <sidney.reilley.ii@gmail.com>
Newsgroups comp.lang.ruby
Subject making a class in irb
Date 2021-11-19 17:37 +0000
Organization A noiseless patient Spider
Message-ID <sn8ndn$914$1@dont-email.me> (permalink)

Show all headers | View raw


Ruby noob here! Using irb to learn.
created a sample class with 2 instance vars.
tried to access the vars. NO JOY!
Forgot to include the attr_reader.
Is there a way to amend/update a class in the irb?
Or do I have to re-type the entire class over again?
TIA ...

Back to comp.lang.ruby | Previous | NextNext 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