Skip to content

Instantly share code, notes, and snippets.

@ScottRadcliff
Created December 15, 2015 03:26
Show Gist options
  • Save ScottRadcliff/ed7e0f62e70784a151ba to your computer and use it in GitHub Desktop.
Save ScottRadcliff/ed7e0f62e70784a151ba to your computer and use it in GitHub Desktop.
class Name
def initialize(first_name, last_name)
@first_name = first_name
@last_name = last_name
end
def first_name
puts @first_name
end
def last_name
puts @last_name
end
def full_name
puts @first_name + “ “ + @last_name
end
undef first_name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment