circleci
2390 of 3192 relevant lines covered (74.87%)
215.79 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
class Breadcrumb |
2✔ |
| 3 |
attr_reader :name, :path |
2✔ |
| 4 |
def initialize(name, path) |
2✔ |
| 5 |
@name = name
|
365✔ |
| 6 |
@path = path
|
365✔ |
| 7 |
end
|
|
| 8 |
|
|
| 9 |
def link? |
2✔ |
| 10 |
@path.present?
|
265✔ |
| 11 |
end
|
|
| 12 |
end
|