Beginner
Image

Ruby is a programming language (♦ see DEF) multiplatform and object oriented, created in 1995.

Ruby allows you to create, among other things, App. and websitessoftwares and even games.

Code Examples

→ Let's start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be. However, you must go over 30 to 40 pages per level, before moving on to the next step...

→ In order to evaluate your codes, click on the icon on the left at the bottom of the page (gears), then choose a compiler from the list that will be open in another tab. Finally, test your work.

NOW REPRODUCE AND IMMERSE YOURSELF!

C 0001 - Hello World !

Reproduce this code (please do not copy-paste!). Watch out for the indentation !

print "Hello World !\n"
print "Bye bye World !\n"
or

puts "Hello World !"

C 0002 - Repeat A Word

Reproduce this code (please do not copy-paste!). Watch out for the indentation !

 5.times do
     puts "Hello !"
 end

C 0003 - Types Of Information

Reproduce this code (please do not copy-paste!). Watch out for the indentation !

time1 = Time.new
puts "Hour:" + time1.inspect
time2 = Time.now
puts "Hour:" + time2.inspect

C 0004 - String

Reproduce this code (please do not copy-paste!). Watch out for the indentation !

name1 = "Julian"
name2 = "Mary"
puts "Voici #{name1} and #{name2}."

Ruby Technical Specifications

Tools And Methodologies

Info+ (Ruby)

Creation
» Creation date: 1995
* Created by Yukihiro Matsumoto
* Developed by Contributors
* Written in C
* Cross-platform
* Ruby / GNU licenses

Tools+ (Ruby)

Softwares & Frameworks

News

Tags

Reflex 002 ©
2023 / All rights reserved

Legal structure based in
Nice - FRANCE / Montreal - CANADA
Only by appointment...

Search

Image