Ruby is a dynamic and object-oriented programming language developed by Yukihiro “matz” Matsumoto in Japan. Since its first release in 1995,Template:Citation needed Ruby has seen tremendous growth in adoption thanks in-part to its gain in popularity through web frameworks.
Ruby Interpreters
There are several interpreters for the Ruby language.
- MRI Ruby (or C Ruby) is the original interpreter and specification implementation
- JRuby (or Java Ruby) runs on the Java JVM and allows programmers to mix Java and Ruby.
- IronRuby for Microsoft .NET
Example Ruby Code
#!/bin/env ruby
def hello(name)
puts "Hello, #{name}"
end
def askname
name = gets.chomp
end
hello(askname)
Extending Ruby with Gems
The core ruby API provides many useful functions. To extend ruby's functionality, ruby has a package management system that allows the simple addition of libraries and helper programs through a program called 'gem'. Gems can be searched, installed, removed, etc using a command line tool.
Applications written in Ruby
- OpenTelegard/2
Web Frameworks
Merb
Nitro
Ramaze
Ramaze is an MVC framework for Ruby with a focus on simplicity, flexibility, and choice.
Ruby on Rails
Ruby on Rails is perhaps the most well known of the Frameworks. Using an MVC paradigm, Rails allows rapid development of Web 2.0 applications. see Ruby on Rails
Sinatra
Sinatra is DSL for rapidly creating RESTful applications.
Waves
See Also
- IronRuby
- JRuby
- Ramaze
- Ruby on Rails
- Sinatra
- List of Ruby Frameworks
- List of Ruby Applications
- Comparison of Ruby Interpreters
- Comparison of Programming Languages