Introduction à Ruby

Pourquoi Ruby ? 

RVM

https://rvm.io/

irb

puts('Hello World')

ruby app.rb

name = 'Clio'

year = 2012

names = ['Clio','Mégane']

car = {name: 'Clio', year: 2012}

car[:name]

puts("Bonjour #{name}")

country = 'France'

if country == 'France'

  puts("Bonjour")

end

 

if country == 'France'

  puts('Bonjour')

else

  puts('Hello')

end

 

def bonjour

  puts('Bonjour')

end

def bonjour(name)

  puts("Bonjour #{name}")

end

deck

By aghaniyassin