Class: Jiminy::Reporting::YAMLFileCommentPresenter

Inherits:
Object
  • Object
show all
Includes:
GithubAPIable
Defined in:
lib/jiminy/reporting/yaml_file_comment_presenter.rb

Constant Summary collapse

INSTANCE_SEPARATOR =
"\n"

Instance Method Summary collapse

Constructor Details

#initialize(source_filepath:, pr_number:) ⇒ YAMLFileCommentPresenter

Returns a new instance of YAMLFileCommentPresenter.



14
15
16
17
# File 'lib/jiminy/reporting/yaml_file_comment_presenter.rb', line 14

def initialize(source_filepath:, pr_number:)
  @source_filepath = source_filepath
  @pr_number = pr_number
end

Instance Method Details

#comment_bodyObject Also known as: to_s



19
20
21
# File 'lib/jiminy/reporting/yaml_file_comment_presenter.rb', line 19

def comment_body
  @_comment_body ||= build_comment_body
end