Class: RapidDiffs::Viewers::ViewerComponent

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(diff_file:) ⇒ ViewerComponent

Returns a new instance of ViewerComponent.



10
11
12
# File 'app/components/rapid_diffs/viewers/viewer_component.rb', line 10

def initialize(diff_file:)
  @diff_file = diff_file
end

Class Method Details

.viewer_nameObject

Raises:

  • (NotImplementedError)


6
7
8
# File 'app/components/rapid_diffs/viewers/viewer_component.rb', line 6

def self.viewer_name
  raise NotImplementedError
end

Instance Method Details

#virtual_rendering_paramsObject



14
15
16
# File 'app/components/rapid_diffs/viewers/viewer_component.rb', line 14

def virtual_rendering_params
  nil
end