2. CONTENTS
Introduction
History
Overview of ruby programing
Application and tool needed for Ruby
Different from other language
Advantages of Ruby programing
Disadvantages of programing
Example of Ruby programing
Conclusion
4. HISTORY
Born Feb 24, 1993 – Yukihiro ”Matz” Matsumoto
Ruby 0.95 – announced Dec 21, 1995
– OO, Inheritance, iterators, exception handling, garbage
collection
Ruby 1.0 – released Dec 25, 1996
Ruby 1.3 – 1999
– After its release an English ”Ruby” mailing list was
created
Ruby on Rails – 2005
– MVC web framework coded with Ruby
Ruby 1.9.1 – Latest version
5. OVERVIEW OF RUBY PROGRAMMING
Ruby – Scripting language, dynamic and object
oriented
Allows rapid development and rapid prototypes
of software
Consists of useful string operations and regular
expressions
Everything in Ruby is an object
Has automatic garbage collection
Instant feedback when developing
Multiple OS support and open source
6. TOOLS NEEDED FOR RUBY
The Ruby interpreter
A text editor such as Notepad++, Scite or
Vim.Word processors such as Wordpad or
Microsoft Word are not suitable.
Command-line access.
7. DIFFERENT FROM OTHER LANGUAGE
Objects are strongly typed (and variable names
themselves have no type at all).
No pointers ,no typedefs, sizeof, nor enums.
There are no header files.
There’s no #define. Just use constants instead.
8. PROGRAM FOR FACTORIAL NO .
def fact(n)
if n == 0
1
else
n * fact(n-1)
end
end
puts fact(ARGV[0].to_i)
11. CONCLUSION
Ruby is an object oriented language and the object oriented
features are used throughout. Ruby is that doesn’t require a lot of
extra punctuation. Compared to Java, Ruby is streamlined, with
less code required to create basic structures such as data fields.
Ruby is a modern language that makes it easy to use high-level
abstractions such as metaprogramming.