Sha256: f28073bd1bcbe9fa5db423853cbf273a992580e12f950a856940f0510fb2088c
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
module SocialShareButton class << self attr_accessor :config def configure yield self.config ||= Config.new end end class Config # enable social sites to share, # * default : twitter facebook weibo douban # * site support: twitter facebook weibo douban attr_accessor :allow_sites def initialize end end end SocialShareButton.configure do |conf| conf.allow_sites = %w(twitter facebook weibo douban) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social-share-button-0.0.2 | lib/social_share_button/config.rb |