mardi 26 juin 2018

My irb code is not running, in Ruby

My irb code is not running, after I type my code, what's next? What keys do I have to press? because it keeps making another blank line.

Code:

2.1.2 :002 > family = [ "Hosea", "jason", "Corey", "Kevin"']

2.1.2 :003'> family.each do | fam|

2.1.2 :004'> puts "#{family} have you ever lie to me."

2.1.2 :005'>  end

2.1.2 :006'> fam = gets.chomp

2.1.2 :007'> if fam == yes

2.1.2 :008'> puts "#{family} I respect that you could look in my eyes and tell me that."

2.1.2 :009'>  else

2.1.2 :010'> puts "#{family} i know you lying now bitch?"

2.1.2 :011'> end

2.1.2 :012'>

Aucun commentaire:

Enregistrer un commentaire