-
-
Save lgmkr/3386364 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
module PB::SocialNetwork::Base | |
def self.included base | |
@networks << base | |
base.extend ClassMethods | |
base.include InstanceMethods | |
# другая инициализация | |
end | |
end | |
class PB::SocialNetwork::Facebook | |
include PB::SocialNetwork::Base | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment