Skip to content

Instantly share code, notes, and snippets.

@jonathanenlared
Created March 7, 2015 03:27
Show Gist options
  • Save jonathanenlared/acfa96f165c32f59bc11 to your computer and use it in GitHub Desktop.
Save jonathanenlared/acfa96f165c32f59bc11 to your computer and use it in GitHub Desktop.
class Students
attr_reader :name, :last, :age
def initialize(nombre, apellido, age)
@name = name
@last = last
@age = age
@@average = 0
end
def self.average
end
def complete_name
complete_name = @name + " " + @last
complete_name
end
def age=(age)
@age = age
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment