Class: Evilution::CLI::Printers::UtilMutation Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/cli/printers/util_mutation.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(mutations, format:) ⇒ UtilMutation

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of UtilMutation.



7
8
9
10
# File 'lib/evilution/cli/printers/util_mutation.rb', line 7

def initialize(mutations, format:)
  @mutations = mutations
  @format = format
end

Instance Method Details

#render(io) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/evilution/cli/printers/util_mutation.rb', line 12

def render(io)
  @format == :json ? render_json(io) : render_text(io)
end