lib/autolink.rb
# Add <tt><a></a></tt> tags around the usernames, lists, hashtags and URLs
#   in the provided <tt>text</tt>. The <tt><a></tt> tags can be controlled
#   with the following entries in the <tt>options</tt> hash:
#
# <tt>:url_class</tt>::     class to add to all <tt><a></tt> tags
# <tt>:list_class</tt>::    class to add to list <tt><a></tt> tags
# <tt>:username_class</tt>::    class to add to username <tt><a></tt> tags
# <tt>:hashtag_class</tt>::    class to add to hashtag <tt><a></tt> tags
# <tt>:username_url_base</tt>::      the value for <tt>href</tt> attribute
#   on username links. The <tt>@username</tt> (minus the <tt>@</tt>) will be
#   appended at the end of this.
# <tt>:list_url_base</tt>::      the value for <tt>href</tt> attribute on
#   list links. The <tt>@username/list</tt> (minus the <tt>@</tt>) will be
#   appended at the end of this.
# <tt>:hashtag_url_base</tt>::      the value for <tt>href</tt> attribute on
#   hashtag links. The <tt>#hashtag</tt> (minus the <tt>#</tt>) will be
#   appended at the end of this.
# <tt>:suppress_lists</tt>::    disable auto-linking to lists
# <tt>:suppress_no_follow</tt>::   Do not add <tt>rel="nofollow"</tt> to
#   auto-linked items
# <tt>:target</tt>::   add <tt>target="window_name"</tt> to auto-linked
#   items
Add  tags around the usernames, lists, hashtags and URLs
in the provided text. The  tags can be controlled
with the following entries in the options hash.


Add tags around the usernames lists hashtags and URLs in the provided text . The tags can be controlled with the following entries in the options hash .
def auto_link(text, options = {}, href_options = {}, &blk)
      auto_link_usernames(
        auto_link_urls_custom(
          auto_link_hashtags(text, options),
          href_options),
        options, &blk)
    end
def auto_link ( text , options = { } , href_options = { } , & blk ) auto_link_usernames ( auto_link_urls_custom ( auto_link_hashtags ( text , options ) , href_options ) , options , & blk ) end
Add <tt><a></a></tt> tags around the usernames, lists, hashtags and URLs
in the provided <tt>text</tt>.
Add <tt > <a > < / a > < / tt > tags around the usernames lists hashtags and URLs in the provided <tt > text< / tt > .
text
options
href_options
blk