Method: HtmlGrid::HttpLink#compose_link
- Defined in:
- lib/htmlgrid/urllink.rb
#compose_link ⇒ Object
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/htmlgrid/urllink.rb', line 42 def compose_link unless @value.nil? if @@http_ptrn.match(@value) self.href = @value else self.href = "http://" + @value end set_attribute('target', '_blank') end end |