Skip to content

GilGlendys/ouchyMonster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

ouchyMonster

This was one workshop that I attended for Ruby

(Mac)

Main points:

  1. Go to the Terminal and type irb
  2. def to define
  3. puts/ print to output values (puts adds a new line to end of the output)
  4. CONCATENATION "+" / Changing Type #/a/etc.to_i or to_f or to_s, etc.
  5. gets method to receive data typed into the console and for new line \n
  6. chomp to remove the last character of a string
  7. .include?() function is case-sensitive –

Commands:

  1. cd, ls
  2. ruby file name to run the program
  3. to run csv files --> use : require 'csv'