Git Product home page Git Product logo

manufacture's Introduction

Manufacture Ruby

Installation de l'environnement

Linux, WSL, Cygwin

Bravo, vous êtes les grands gagnants, allez à (cette adresse)[http://rvm.io/install] et installez RVM (Ruby Version Manager)

Lorsque c'est fait, fermez et réouvrez tous les terminaux, puis exécutez la commande rvm install 2.6.5

Windows

Allez à (cette adresse)[https://rubyinstaller.org/downloads] et téléchargez Ruby Installer 2.6.5-1 avec le devkit.

Exécutez le fichier, laissez-vous guider.

Vérifier l'installation

Linux, WSL, Cygwin, Windows

  • Tapez irb dans votre terminal, normalement vous devez arriver dans un invite de commande ruby
  • entrez la ligne de code puts 'Hello world!' dans le terminal
  • le programme doit alors afficher "Hello world!"

Hint : la constante RUBY_VERSION contient votre version de ruby, essayez-la pour vous assurer d'avoir installé la bonne.

Les examples de code

Pour exécuter un fichier d'exemple, placez-vous à la racine du projet dans un terminal et entrez la commande

ruby <chemin_relatif_du_fichier>

Eg ruby examples/functions.rb

Vous pourrez alors comparer le code avec la diapositive correspondante. Des commentaires additionnels sont présents dans le code.

manufacture's People

Contributors

vincentcourtois avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.