Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8086079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:20:33+00:00 2026-06-05T18:20:33+00:00

Can i do editing in the irb shell ? irb(main):001:0> class MyClass irb(main):002:1> def

  • 0

Can i do editing in the irb shell ?

irb(main):001:0> class MyClass
irb(main):002:1> def initialize(aStr)
irb(main):003:2> @avar = astr
irb(main):004:2> end
irb(main):005:1> def MyClass.new(aStr)
irb(main):006:2> @anewvar = aStr.swapcase
irb(main):007:2> end
irb(main):008:1> end
=> nil
irb(main):009:0> object = MyClass.new("ghazal")
=> "GHAZAL"

Is there any way i can go back to say line number 003 and add or delete a statement ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:20:34+00:00Added an answer on June 5, 2026 at 6:20 pm

    It seems that irb doesn’t support such operations. Maybe you can work around the problem by using interactive_editor. With it you can start a vi editor from irb, after you quit the editor, the content you input will be saved and evaluated immediately by irb.

    Please refer to the following page for details.

    https://github.com/jberkel/interactive_editor

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can ASP.NET MVC's validation errors be styled? Where? I tried editing .input-validation-error class in
Anyone knows what language one can use when editing an expression (SSRS expressions) in
I can't seem to find the syntax for editing an already-created stored procedure in
How can I grant permission java.lang.RuntimePermission modifyThread; I tried editing in C:\ede-5.1.1\java6-ibm-sr4ifx3-2009-06-22\jre\lib\security under java.policy
In a Portable-Executable ,we can change the imported dll name ,by editing PE file
I'm using jqgrid's form editing feature. Can I programmatically set the readonly attribute of
I'm trying to do inline editing for my website using jQuery so I can
First some background, which can be condensed into editing a property VatCode of VatCodeViewModel.
Is there a way to disable a cell for editing? We can define editor
I keep on forgetting which file I'm editing. In Vim 7.x, how can I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.