Created
January 7, 2016 17:30
-
-
Save deanmarano/c7fe2dfc1d814bc34c7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserEnroller | |
attr_reader :user, :email | |
def initialize(user) | |
@user = user | |
if @user | |
# do some initialization, set some variables | |
end | |
end | |
def enroll! | |
# something will break if user is nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment