Setter

class Student @first_name
@last_name
@email
@username
@password
enddef first_name=(name)#setter
@first_name = name
end
def to_s
"First name" #{@first_name}"
endrumi = Student.new
rumi.first_name = "Rumi"
#(= lets you know it's the setter)
#Trying to grab Obj.Rumi(type student class)
#Then first_name…
  • web applications
  • ios apps
  • android apps

City Info

“Big O”?…

Ruby Got Style! Say ‘Whaaaa’!!!

  • Figure out how to practice your coding in ruby playground.rb
  • Figure out how to use Repl.it to practice your coding skills as well.
  • Practice, Practice and Practice some more!

“Hashing Around”

Photo by Gabriel Sollmann on Unsplash

Rumiko Acopa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store