2. History
01
0
2
03
Yukihiro “Matz” Matsumoto
February 24, 1993
Matz wanted a scripting language that was more
powerful than Perl, and more object-oriented than
Python. That's why he decided to design his own
language.
Perl Java Python Ruby PHP
1987 1991 1993 1995
3. Scripting Language
A high-level programming language that is interpreted by
another program at runtime rather than compiled by the
computer's processor as other programming languages
(such as C and C++) are. Scripting languages, which can
be embedded within HTML, commonly are used to add
functionality to a Web page.
JavaScript, ASP, JSP, PHP, Perl, Tcl and Python are
examples of scripting languages.
7. Everything is an object
1.class # => Fixnum
'a'.class # => String
:a.class # => Symbol
class Record
end
Record.class # => Class
Record.new.class # => Record
8. Method, Class and Invocation
def do_work(task_ref)
task_ref.assigned_work
end
Class Task
def assigned_work
puts “Completed successfully.”
end
end
do_work(Task.new)
Method
Class
Invocation