Skip to content

Instantly share code, notes, and snippets.

@solomon081
Created March 30, 2012 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solomon081/2245789 to your computer and use it in GitHub Desktop.
Save solomon081/2245789 to your computer and use it in GitHub Desktop.
Ruby Profile (Struct)
class Profile
# Profile in the struct format
def initialize(name, desc, age, gender, status)
:attr_reader
puts "Name: #{name}"
puts "Description: #{desc}"
puts "Age: #{age}"
puts "Gender: #{gender}"
puts "Status: #{status}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment