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.