push
travis-ci
1426 of 1523 relevant lines covered (93.63%)
4843.49 hits per line
1 |
module Roo |
12✔ |
2 |
class Link < String |
12✔ |
3 |
attr_reader :href
|
12✔ |
4 |
alias :url :href |
12✔ |
5 |
|
|
6 |
def initialize(href='', text=href) |
13✔ |
7 |
super(text)
|
30✔ |
8 |
@href = href
|
30✔ |
9 |
end
|
|
10 |
|
|
11 |
def to_uri |
12✔ |
12 |
URI.parse href
|
× |
13 |
end
|
|
14 |
end
|
|
15 |
end
|