Module: SocialButtons
- Defined in:
- lib/social_buttons.rb,
lib/social_buttons/engine.rb,
lib/social_buttons/railtie.rb,
lib/social_buttons/view_helper.rb,
lib/social_buttons/view_helpers/like.rb,
lib/social_buttons/view_helpers/pinit.rb,
lib/social_buttons/view_helpers/tweet.rb,
lib/social_buttons/view_helpers/scripter.rb,
lib/social_buttons/view_helpers/assistant.rb,
lib/social_buttons/view_helpers/vkontakte.rb,
lib/social_buttons/view_helpers/google_plus.rb,
lib/social_buttons/view_helpers/google_plus/help.rb
Defined Under Namespace
Modules: Assistant, GooglePlus, Like, Pinit, Rails, Tweet, ViewHelper, Vkontakte
Classes: Railtie, Scripter
Class Method Summary
collapse
Class Method Details
.all ⇒ Object
10
11
12
|
# File 'lib/social_buttons.rb', line 10
def self.all
names + helpers
end
|
.config(name = nil, &block) ⇒ Object
14
15
16
17
|
# File 'lib/social_buttons.rb', line 14
def self.config name = nil, &block
context = name ? "SocialButtons::#{name.to_s.camelize}".constantize : self
block_given? ? yield(context) : context
end
|
.helpers ⇒ Object
6
7
8
|
# File 'lib/social_buttons.rb', line 6
def self.helpers
%w{assistant scripter}
end
|
.names ⇒ Object
2
3
4
|
# File 'lib/social_buttons.rb', line 2
def self.names
%w{pinit tweet like google_plus vkontakte}
end
|