Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class String
- def palindrome?
- return self == self.reverse
- end
- end
- class User
- attr_accessor :name, :email
- def initialize(attributes={})
- @name = attributes[:name]
- @email = attributes[:email]
- end
- def formatted_email
- return "#{@name} <#{@email}>"
- end
- end
Add Comment
Please, Sign In to add comment