class ObjectIdentifier::BaseFormatter
ObjectIdentifier::BaseFormatter
is an abstract base class for formatters.
Attributes
Public Class Methods
Source
# File lib/object_identifier/formatters/base_formatter.rb, line 9 def self.call(...) new(...).call end
A shortcut for calling ‘new(…).call`.
Source
# File lib/object_identifier/formatters/base_formatter.rb, line 16 def initialize(objects, parameters: ObjectIdentifier::Parameters.build) @objects = ObjectIdentifier::ArrayWrap.(objects) @parameters = parameters end
@param objects [Object, [Object, …]] The object(s) to be interrogated for
String values to be added to the output String.
@param parameters [ObjectIdentifier::Parameters]
Public Instance Methods
Source
# File lib/object_identifier/formatters/base_formatter.rb, line 21 def call raise(NotImplementedError) end