• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Ruby Introduction
 

Ruby Introduction

on

  • 342 views

 

Statistics

Views

Total Views
342
Views on SlideShare
342
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Ruby Introduction Ruby Introduction Presentation Transcript

    • RubyProgrammer’s Best FriendD. PrabuRuby On Rails Developer,Spritle Software.
    • History010203Yukihiro “Matz” MatsumotoFebruary 24, 1993Matz wanted a scripting language that was morepowerful than Perl, and more object-oriented thanPython. Thats why he decided to design his ownlanguage.Perl Java Python Ruby PHP1987 1991 1993 1995
    • Scripting LanguageA high-level programming language that is interpreted byanother program at runtime rather than compiled by thecomputers processor as other programming languages(such as C and C++) are. Scripting languages, which canbe embedded within HTML, commonly are used to addfunctionality to a Web page.JavaScript, ASP, JSP, PHP, Perl, Tcl and Python areexamples of scripting languages.
    • Code Sample5.times { print “Ruby! " }
    • Code Sample5.times { print “Ruby! " }Ruby! Ruby! Ruby! Ruby! Ruby!
    • ConventionsVarialbes Class Variablename_of_the_product @@current_client_idClass NameTeamPartySymbols:list_Of_itemsInstance Variables@current_client
    • Everything is an object1.class # => Fixnuma.class # => String:a.class # => Symbolclass RecordendRecord.class # => ClassRecord.new.class # => Record
    • Method, Class and Invocationdef do_work(task_ref)task_ref.assigned_workendClass Taskdef assigned_workputs “Completed successfully.”endenddo_work(Task.new)MethodClassInvocation
    • THANKSSPRITLE SOFTWARE
    • THANKSSPRITLE SOFTWARE