Skip to content

Instantly share code, notes, and snippets.

@guinslym
Created January 2, 2014 10:03
Show Gist options
  • Save guinslym/8217189 to your computer and use it in GitHub Desktop.
Save guinslym/8217189 to your computer and use it in GitHub Desktop.
I ran this Hash in my console << ruby example.rb but my students.count doesn't appear?
#!/bin/ruby
#all those informations are fictive
students = {:VILC22579307 => "VILLENEUVE-ASSE, CINDY",
:NDIJ19129106 => "NDIAYE YEND, JEAN-LOUIS RUDY",
:JEAJ03108909 => "JEAN-BAPTISTE, JOSEPH-RAYMOND MARC",
:ELME29089109 => "EL MOUTARAJJI EL ALA, ELIAS",
:TRED01039200 => "TREMBLAY, DENIS MARC-ANDRE PIERRE",
:AUCM28579305 => "AUCLAIR-JULIEN, MARIE-ISABELLE"}
students.count
puts "hello world"#only this line appears
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment