Class: RapidDiffs::Viewers::Text::InlineHunkComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/rapid_diffs/viewers/text/inline_hunk_component.rb

Instance Method Summary collapse

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