Class: RapidDiffs::Viewers::Text::InlineHunkComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- RapidDiffs::Viewers::Text::InlineHunkComponent
- Defined in:
- app/components/rapid_diffs/viewers/text/inline_hunk_component.rb
Instance Method Summary collapse
-
#initialize(diff_hunk:, file_hash:, file_path:) ⇒ InlineHunkComponent
constructor
A new instance of InlineHunkComponent.
Constructor Details
#initialize(diff_hunk:, file_hash:, file_path:) ⇒ InlineHunkComponent
Returns a new instance of InlineHunkComponent.
9 10 11 12 13 |
# File 'app/components/rapid_diffs/viewers/text/inline_hunk_component.rb', line 9 def initialize(diff_hunk:, file_hash:, file_path:) @diff_hunk = diff_hunk @file_hash = file_hash @file_path = file_path end |