SHARE
TWEET

Untitled

a guest Sep 13th, 2017 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Hello
  2.  
  3.     def initialize (firstname, lastname, phone)
  4.         @time = Time.now;
  5.         @firstname, @lastname, @phone = firstname, lastname, phone
  6.     end
  7.  
  8.     def greet
  9.         puts "Hello #{@firstname}!"
  10.     end
  11.  
  12. end
  13.  
  14. hi = Hello.new('Mitchell', 'Cooper', '555-5555')
  15. hi.greet()
RAW Paste Data
Top