Class: Jiminy::Reporting::YAMLFileCommentPresenter
- Inherits:
-
Object
- Object
- Jiminy::Reporting::YAMLFileCommentPresenter
- Includes:
- GithubAPIable
- Defined in:
- lib/jiminy/reporting/yaml_file_comment_presenter.rb
Constant Summary collapse
- INSTANCE_SEPARATOR =
"\n"
Instance Method Summary collapse
- #comment_body ⇒ Object (also: #to_s)
-
#initialize(source_filepath:, pr_number:) ⇒ YAMLFileCommentPresenter
constructor
A new instance of YAMLFileCommentPresenter.
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_body ⇒ Object 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 |