Sha256: c092a4f0a90a7dd1ddfe159ee3424fc2c2dcda8dfe698b68701b9650959b4f1c
Contents?: true
Size: 262 Bytes
Versions: 52
Compression:
Stored size: 262 Bytes
Contents
def gh_link(gh_identifier, text=nil) text = gh_identifier.split('/').last if text.nil? id_and_name, number = gh_identifier.split('#') url = "https://github.com/#{id_and_name}" url = url + "/issues/#{number}" if number "<a href='#{url}'>#{h text}</a>" end
Version data entries
52 entries across 46 versions & 2 rubygems