Sha256: b9dbd7753652b738c3fcbab711a041f01bea1093420805aeecab9781ff264815
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true # ObjectIdentifier is the top-level namespace/module for this gem. module ObjectIdentifier # :reek:LongParameterList # ObjectIdentifier.call is the main entry point for use of this gem. In # typical usage, however, this method will almost exclusively just be called # by {Object#identify}, as defined in lib/core_ext/object.rb. def self.call( objects, *attributes, formatter_class: default_formatter_class, **formatter_options) parameters = ObjectIdentifier::Parameters.build( attributes: attributes, formatter_options: formatter_options) formatter_class.(objects, parameters: parameters) end end
Version data entries
3 entries across 3 versions & 1 rubygems