From 4e3d1474b4e93a41efc9289d67d420825aad36a4 Mon Sep 17 00:00:00 2001 From: Cayla Horsey Date: Mon, 15 Jul 2024 13:15:15 -0400 Subject: [PATCH] Complete lab --- lib/chatty_student.rb | 12 ++++++++++++ lib/student.rb | 9 +++++++++ 2 files changed, 21 insertions(+) diff --git a/lib/chatty_student.rb b/lib/chatty_student.rb index e69de29b..5daa0213 100644 --- a/lib/chatty_student.rb +++ b/lib/chatty_student.rb @@ -0,0 +1,12 @@ +require_relative './student' + +class ChattyStudent < Student + def hello + super + puts "How are you doing today? I'm okay, but I'm kind of tired. Did you watch The Walking Dead last night? You didn't?! Oh man, it was so crazy! What, you don't want any spoilers? Okay well let me just tell you who died..." + end + + def raise_hand + 10.times { super } + end +end diff --git a/lib/student.rb b/lib/student.rb index e69de29b..d277cd4f 100644 --- a/lib/student.rb +++ b/lib/student.rb @@ -0,0 +1,9 @@ +class Student + def hello + puts "Hey there! I'm so excited to learn stuff." + end + + def raise_hand + puts "Pick me!" + end +end