Skip to content

Instantly share code, notes, and snippets.

@jsl
Created January 14, 2014 15:47
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 jsl/8420416 to your computer and use it in GitHub Desktop.
Save jsl/8420416 to your computer and use it in GitHub Desktop.
class Person
attr_reader :name
def initialize(name)
@name = name
end
def reverse_name
funreverse
end
private
def funreverse
name.upcase.reverse
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment