Sha256: fe06de9b50f6a5bc02152f34f8000593148ceb08f76cd879a441c88f616d6277
Contents?: true
Size: 232 Bytes
Versions: 2
Compression:
Stored size: 232 Bytes
Contents
module MirandaHelper class Url def link_to(url,text=url,opts={}) attributes = "" opts.each { |key,value| attributes << key.to_s << "=\"" << value << "\" "} "<a href=\"#{url}\" #{attributes}>#{text}</a>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
miranda-0.0.3 | helpers/link.rb |
miranda-0.0.2 | helpers/link.rb |