Module: AutoTagging
- Extended by:
- Config
- Includes:
- Errors
- Defined in:
- lib/auto_tagging.rb,
lib/auto_tagging/error.rb,
lib/auto_tagging/yahoo.rb,
lib/auto_tagging/config.rb,
lib/auto_tagging/alchemy.rb,
lib/auto_tagging/version.rb,
lib/auto_tagging/delicious.rb,
lib/auto_tagging/string_ext.rb,
lib/auto_tagging/open_calais.rb,
lib/auto_tagging/search_param.rb
Defined Under Namespace
Modules: Config, Errors, SearchParam, StringExt Classes: Alchemy, Delicious, OpenCalais, Yahoo
Constant Summary collapse
- VERSION =
"1.1.2"
Instance Attribute Summary
Attributes included from Config
Class Method Summary collapse
Methods included from Config
Methods included from StringExt
Class Method Details
.get_tags(content = '') ⇒ Object
8 9 10 11 12 |
# File 'lib/auto_tagging.rb', line 8 def self.(content = '') [] if content.to_s.empty? raise AutoTagging::Errors::NoServiceConfigurationError if self.mains.to_a.empty? self.mains.map { | main | main.(content) }.flatten.compact.uniq end |