25-06-2012, 05:12 PM
ruby Programming Language
ruby.ppt (Size: 711.5 KB / Downloads: 38)
Introduction
Pure Object Oriented language
Highly portable, works on Linux, UNIX, DOS, Windows 95/98/NT/2K, Mac, etc.
Freely available and open-source.
More popular than Python in Japan, probably b/c it handles multibyte character sets so easily.
Syntax is readable and easy to learn.
Ruby: the Language
No multiple inheritance, but modules allow the importing of methods.
Has garbage collection.
Exception handling, like Java.
Any class or instance can be extended anytime (even during runtime)
Allows operator overloading.
Why is Ruby special
Easy to use scripting language with a lot of scope for deeper programming paradigms.
For example Ruby can be used procedurally.
#!/usr/bin/ruby
print “Hello World\n”
Or in an object oriented manner.
Even full stack web applications development environment, Rails.
What is Rails
Rails is a web application development framework, written entirely in ruby.
Rails is packaged as a ruby gem package “rails-1.1.6.gem”
Once “ruby” and “rubygems” are installed rails can be installed using a single command, gem will get all of rails dependancies.
Rubygems
Ruby packages are generally distributed as gem files, i.e “activerecord-1.14.4.gem” except for “rubygems” which is the package management tool.