Created
May 14, 2018 11:55
-
-
Save mleszcz/533d00c4a067d0a208a388739c76f86d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 BlogActions | |
def create_post; end | |
def edit_post; end | |
def delete_post; end | |
end | |
class Moderator < BlogActions | |
end | |
moderator = Moderator.new | |
# not wanted! | |
moderator.delete_post |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment