Class: EasyTags::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_tags.rb

Overview

handle lib configuration options

Example

EasyTags.setup do |config|
  config.tags_table = :tags
  config.taggings_table = :taggings
  config.parser = EasyTags::Parsers::Default
  config.generator = EasyTags::Generators::Default
end

Constant Summary collapse

OPTIONS =
i[
  tags_table
  taggings_table
  parser
  generator
].freeze

Instance Method Summary collapse

Constructor Details

#initializeConfiguration


55
56
57
58
59
60
# File 'lib/easy_tags.rb', line 55

def initialize
  self.tags_table = :tags
  self.taggings_table = :taggings
  self.parser = Parsers::Default
  self.generator = Generators::Default
end