Sha256: ce65ff60f62079b92e1fba7b69562f9ef2af31b6b7d1b65c8ea187e2a8f4c87c
Contents?: true
Size: 350 Bytes
Versions: 21
Compression:
Stored size: 350 Bytes
Contents
# frozen_string_literal: true module Decidim module TwitterSearchHelper # Builds the URL for Twitter's hashtag search. # # @param hashtag [String] The hasthag to search # # @return [String] def twitter_hashtag_url(hashtag) format("https://twitter.com/hashtag/%{hashtag}?src=hash", hashtag: hashtag) end end end
Version data entries
21 entries across 21 versions & 1 rubygems