Class: Dicey::OutputFormatters::NullFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/dicey/output_formatters/null_formatter.rb

Overview

Formatter that doesn’t format anything and always returns an empty string.

Instance Method Summary collapse

Instance Method Details

#call(hash, description = nil) ⇒ String

Returns always an empty string.

Parameters:

  • hash (Hash{Object => Object})
  • description (String) (defaults to: nil)

    text to add as a comment.

Returns:

  • (String)

    always an empty string



10
11
12
# File 'lib/dicey/output_formatters/null_formatter.rb', line 10

def call(hash, description = nil) # rubocop:disable Lint/UnusedMethodArgument
  ""
end