2018-07-25 05:30:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-08 19:52:05 -04:00
|
|
|
class ReadmeBlob < SimpleDelegator
|
2019-12-17 10:08:15 -05:00
|
|
|
include BlobActiveModel
|
|
|
|
|
2017-05-08 19:52:05 -04:00
|
|
|
attr_reader :repository
|
|
|
|
|
|
|
|
def initialize(blob, repository)
|
|
|
|
@repository = repository
|
|
|
|
|
|
|
|
super(blob)
|
|
|
|
end
|
|
|
|
|
|
|
|
def rendered_markup
|
|
|
|
repository.rendered_readme
|
|
|
|
end
|
|
|
|
end
|