Skip to content

Instantly share code, notes, and snippets.

@deanmarano
Created January 7, 2016 17:30
Show Gist options
  • Save deanmarano/c7fe2dfc1d814bc34c7f to your computer and use it in GitHub Desktop.
Save deanmarano/c7fe2dfc1d814bc34c7f to your computer and use it in GitHub Desktop.
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