code

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.

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

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

External Links