Module: ActsAsTaggableOn
- Defined in:
- lib/acts-as-taggable-on.rb,
lib/acts_as_taggable_on/tag.rb,
lib/acts_as_taggable_on/utils.rb,
lib/acts_as_taggable_on/engine.rb,
lib/acts_as_taggable_on/tagger.rb,
lib/acts_as_taggable_on/tagging.rb,
lib/acts_as_taggable_on/version.rb,
lib/acts_as_taggable_on/tag_list.rb,
lib/acts_as_taggable_on/taggable.rb,
lib/acts_as_taggable_on/tags_helper.rb
Defined Under Namespace
Modules: Compatibility, Taggable, Tagger, TagsHelper, Utils
Classes: Configuration, DuplicateTagError, Engine, Tag, TagList, Tagging
Constant Summary
collapse
- VERSION =
'3.2.3'
Class Method Summary
collapse
Class Method Details
.glue ⇒ Object
26
27
28
29
30
|
# File 'lib/acts-as-taggable-on.rb', line 26
def self.glue
setting = @configuration.delimiter
delimiter = setting.kind_of?(Array) ? setting[0] : setting
delimiter.ends_with?(' ') ? delimiter : "#{delimiter} "
end
|
.method_missing(method_name, *args, &block) ⇒ Object
17
18
19
20
|
# File 'lib/acts-as-taggable-on.rb', line 17
def self.method_missing(method_name, *args, &block)
@configuration.respond_to?(method_name) ?
@configuration.send(method_name, *args, &block) : super
end
|
.respond_to?(method_name, include_private = false) ⇒ Boolean
22
23
24
|
# File 'lib/acts-as-taggable-on.rb', line 22
def self.respond_to?(method_name, include_private=false)
@configuration.respond_to? method_name
end
|
.setup {|@configuration| ... } ⇒ Object
12
13
14
15
|
# File 'lib/acts-as-taggable-on.rb', line 12
def self.setup
@configuration ||= Configuration.new
yield @configuration if block_given?
end
|