If Ruby is installed, then
ruby yourfile.rb
where yourfile.rb
is the file containing the ruby code.
Or
irb
to start the interactive Ruby environment, where you can type lines of code and see the results immediately.
Related Posts:
- How to run Ruby code from terminal?
- %i or %d to print integer in C using printf()?
- How to execute a program or call a system command?
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- What is the meaning of *nix?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- Use Device Login on Smart TV / Console
- Get underlined text with Markdown
- Why does Ruby on Rails use http://0.0.0.0:3000 instead of http://localhost:3000?
- How to write a switch statement in Ruby
- How to switch Python versions in Terminal?
- How to clear the interpreter console?
- Parsing a JSON string in Ruby
- How to reload .bashrc settings without logging out and back in again?
- Tell Ruby Program to Wait some amount of time
- Rails 5 ActionController::InvalidAuthenticityToken error
- How to clear the interpreter console?
- what does ? ? mean in ruby
- SyntaxError: Unexpected Identifier in Chrome’s Javascript console
- How to clear the console?
- keep getting “? Something is already running on port 3000” when I do npm start on react app
- Change default title in mac terminal window
- sudo: port: command not found
- cp: missing destination file operand after
- How can I get the application’s path in a .NET console application?
- mvn command not found in OSX Mavrerick
- How to print colored text to the terminal
- ruby operator “=~” [duplicate]
- What does << mean in Ruby?
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- What is attr_accessor in Ruby?
- What does ||= (or-equals) mean in Ruby?
- How to read lines of a file in Ruby
- Clear terminal in Python [duplicate]
- Cannot load such file — bcrypt_ext
- How do I remove Permission denied @ rb_sysopen – Gem install error?
- How to edit a py file from terminal?
- adb command not found
- Ruby: undefined method `[]’ for nil:NilClass when trying to get Enumerator on an Array of Hashes
- Difference between “or” and || in Ruby?
- how to print a string to console in c++
- sudo command not found on Cygwin
- How do I edit $PATH (.bash_profile) on OS X?
- How to fix request failed on channel 0
- How to use vim in the terminal?
- What does this mean in my website console: “JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js?ver=1.4.1:2 “
- PlaySound in C++ Console application?
- warning: constant ::Fixnum is deprecated When generating new model
- OS X cp command in Terminal – No such file or directory
- Ruby array to string conversion
- psql: FATAL: role “postgres” does not exist
- Multi-Line Comments in Ruby?
- How to use the console within Sublime Text
- Mac install and open mysql using terminal
- What is the meaning of “do | |” in Ruby?
- RVM is not a function, selecting rubies with ‘rvm use …’ will not work
- How to delete specific characters from a string in Ruby?
- How do you clear the console screen in C?
- bcrypt LoadError: Cannot load such file
- Uninitialized constant “Controller Name”
- Ruby: kind_of? vs. instance_of? vs. is_a?
- Ruby: What is the easiest way to remove the first element from an array?
- Ruby String to Date Conversion
- Finding text inside a folder using terminal
- p vs puts in Ruby
- Determining type of an object in ruby
- Difference between rake db:migrate db:reset and db:schema:load
- Fizz Buzz in Ruby for dummies
- gdb debugging in Terminal OS X (10.8.5) with zsh
- How to Uninstall RVM? [duplicate]
- Install oAuth PECL error: Cannot install, php_dir for channel “pecl.php.net” is not writeable by the current user
- TypeError: no implicit conversion of Symbol into Integer
- Equivalent of “continue” in Ruby
- What does the Ruby method ‘to_sym’ do?
- How to search in commit messages using command line?
- Text progress bar in terminal with block characters
- Array to Hash Ruby
- GROUP BY and COUNT using ActiveRecord
- How to stop (and restart) the Rails Server?
- What is the best way to convert an array to a hash in Ruby
- Ruby 2.0.0p0 IRB warning: “DL is deprecated, please use Fiddle”
- Getting error: dyld: Symbol not found: _clock_gettime
- Where can I read the Console output in Visual Studio 2015
- Meaning of #{ } in Ruby?
- Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue
- Uploading a file in Rails
- How can I display the current branch and folder path in terminal?
- How to navigate to to different directories in the terminal (mac)?
- Sublime Text from Command Line
- Difference between “and” and && in Ruby?
- What is java interface equivalent in Ruby?
- Sort hash by key, return hash in Ruby
- How to understand strptime vs. strftime
- How do I update zsh to the latest version?
- How to break out from a ruby block?
- How to add to an existing hash in Ruby
- Ruby ‘require’ error: cannot load such file
- Request timeout for icmp_seq
- What is the canonical way to trim a string in Ruby without creating a new string?
- Difference between $stdout and STDOUT in Ruby