Module: MakeTaggable
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/make_taggable.rb,
lib/make_taggable/tag.rb,
lib/make_taggable/utils.rb,
lib/make_taggable/engine.rb,
lib/make_taggable/tagger.rb,
lib/make_taggable/tagging.rb,
lib/make_taggable/version.rb,
lib/make_taggable/tag_list.rb,
lib/make_taggable/taggable.rb,
lib/make_taggable/tags_helper.rb,
lib/make_taggable/default_parser.rb,
lib/make_taggable/generic_parser.rb
Defined Under Namespace
Modules: Taggable, Tagger, TagsHelper, Utils
Classes: Configuration, DefaultParser, DuplicateTagError, Engine, GenericParser, Tag, TagList, Tagging
Constant Summary
collapse
- VERSION =
"0.7.5"
Class Method Summary
collapse
Class Method Details
.glue ⇒ Object
60
61
62
63
64
|
# File 'lib/make_taggable.rb', line 60
def self.glue
setting = @configuration.delimiter
delimiter = setting.is_a?(Array) ? setting[0] : setting
delimiter.end_with?(" ") ? delimiter : "#{delimiter} "
end
|
.method_missing(method_name, *args, &block) ⇒ Object
48
49
50
51
52
53
54
|
# File 'lib/make_taggable.rb', line 48
def self.method_missing(method_name, *args, &block)
if @configuration.respond_to?(method_name)
@configuration.send(method_name, *args, &block)
else
super
end
end
|
.respond_to_missing?(method_name, include_private = false) ⇒ Boolean
56
57
58
|
# File 'lib/make_taggable.rb', line 56
def self.respond_to_missing?(method_name, include_private = false)
@configuration.respond_to? method_name
end
|
.setup {|@configuration| ... } ⇒ Object
43
44
45
46
|
# File 'lib/make_taggable.rb', line 43
def self.setup
@configuration ||= Configuration.new
yield @configuration if block_given?
end
|