Module: LoyalShareButtons

Defined in:
lib/loyal_share_buttons.rb,
lib/loyal_share_buttons/config.rb,
lib/loyal_share_buttons/engine.rb,
lib/loyal_share_buttons/helper.rb,
lib/loyal_share_buttons/railtie.rb,
lib/loyal_share_buttons/version.rb,
lib/generators/loyal_share_buttons/install_generator.rb

Overview

I18n.load_path = Dir.glob( File.dirname(__FILE__) “lib/locales/*/.rb,yml” )

Defined Under Namespace

Modules: Generators, Helper, Rails Classes: Config, Engine

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



3
4
5
# File 'lib/loyal_share_buttons/config.rb', line 3

def config
  @config
end

Class Method Details

.configure {|self.config ||= Config.new| ... } ⇒ Object

Yields:



4
5
6
# File 'lib/loyal_share_buttons/config.rb', line 4

def configure
  yield self.config ||= Config.new
end