Module: Shareable

Defined in:
lib/shareable/engine.rb,
lib/shareable.rb,
lib/shareable/hooks.rb,
lib/shareable/config.rb,
lib/shareable/version.rb,
lib/shareable/railtie.rb,
lib/shareable/helpers/tags.rb,
lib/shareable/helpers/social_buttons.rb,
lib/generators/shareable/config_generator.rb,
lib/shareable/helpers/action_view_extension.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ActionViewExtension, Generators, Helpers Classes: Configuration, Engine, Hooks, Railtie

Constant Summary collapse

VERSION =
"1.1.4"

Class Method Summary collapse

Class Method Details

.configObject

Global settings for Shareable


10
11
12
# File 'lib/shareable/config.rb', line 10

def self.config
  @config
end

.configure {|@config ||= Shareable::Configuration.new| ... } ⇒ Object

Configures global settings for Shareable

Yields:


5
6
7
# File 'lib/shareable/config.rb', line 5

def self.configure(&block)
  yield @config ||= Shareable::Configuration.new
end