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

  • SEARCH
  • Home
  • 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 8693239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:30:19+00:00 2026-06-13T00:30:19+00:00

Possible Duplicate: How to run ruby files? I am starting to learn Ruby and

  • 0

Possible Duplicate:
How to run ruby files?

I am starting to learn Ruby and having a hard time running the Ruby classes in the Terminal.

I created a class in the Sublime Text editor, just “hello world”. I can compile using ruby hello.rb,
but how do I execute it?

I went to the terminal in my root directory and typed rails c which gave me a console. Could some one please tell me how to create an instance? Which console do I use?

  • 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-13T00:30:20+00:00Added an answer on June 13, 2026 at 12:30 am

    Ruby is interpreted, so you don’t need to worry about a separate compile step. ruby hello.rb is the execution command.

    The standard interactive shell (REPL) is irb.

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

Sidebar

Related Questions

Possible Duplicate: Can I run from command line program created by Eclipse? I am
Possible Duplicate: Change icon on of an App in iOS 4 in run-time Is
Possible Duplicate: How to switch an Application between Themed and not Themed at run-time?
Possible Duplicate: Understanding Compile- vs Run-time Dependencies I understand that a dependency with the
Possible Duplicate: Can't convert String into integer in ruby/ruby-on-rails I'm running through a tutorial
Possible Duplicate: Is it possible to run Ruby on Rails with Ruby 1.9x? Browsing
Possible Duplicate: Duplicating components at Run-Time I have a TMyControl ( Control1 ) with
Possible Duplicate: C/C++: Array size at run time w/o dynamic allocation is allowed? In
Possible Duplicate: Run a code in given time interval I have a method that
Possible Duplicate: PHP: running scheduled jobs (cron jobs) How to run a PHP file

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.