Class: SinatraSocialShareButton::Config
- Inherits:
-
Object
- Object
- SinatraSocialShareButton::Config
- Defined in:
- lib/sinatra_social_share_button.rb
Instance Attribute Summary collapse
-
#allow_sites ⇒ Object
Returns the value of attribute allow_sites.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
16 17 18 19 20 21 |
# File 'lib/sinatra_social_share_button.rb', line 16 def initialize @allow_sites = %w[twitter facebook weibo qq douban google_bookmark pinterest email linkedin wechat vkontakte xing reddit hacker_news telegram odnoklassniki whatsapp_app whatsapp_web] end |
Instance Attribute Details
#allow_sites ⇒ Object
Returns the value of attribute allow_sites.
14 15 16 |
# File 'lib/sinatra_social_share_button.rb', line 14 def allow_sites @allow_sites end |