Module: SocialTokenizer

Defined in:
lib/social_tokenizer/token.rb,
lib/social_tokenizer/version.rb,
lib/social_tokenizer/tokenizer.rb,
lib/social_tokenizer/token_type.rb,
lib/social_tokenizer/configuration.rb,
lib/generators/social_tokenizer/utils.rb,
lib/generators/social_tokenizer/install/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Configuration, InstallGenerator, Token, TokenType, Tokenizer

Constant Summary collapse

VERSION =
File.read(File.expand_path('../../../VERSION', __FILE__))

Class Method Summary collapse

Class Method Details

.configurationObject


9
10
11
# File 'lib/social_tokenizer/configuration.rb', line 9

def self.configuration
  @@configuration ||= SocialTokenizer::Configuration.new
end

.configure(configuration = SocialTokenizer::Configuration.new) ⇒ Object


2
3
4
5
6
7
# File 'lib/social_tokenizer/configuration.rb', line 2

def self.configure(configuration = SocialTokenizer::Configuration.new)
  if block_given?
    yield configuration
  end
  @@configuration = configuration
end

.version_stringObject


4
5
6
# File 'lib/social_tokenizer/version.rb', line 4

def self.version_string
  "SocialTokenizer version #{SocialTokenizer::VERSION}"
end