Module: Blueprinter Private

Defined in:
lib/blueprinter/field.rb,
lib/blueprinter.rb,
lib/blueprinter/base.rb,
lib/blueprinter/view.rb,
lib/blueprinter/errors.rb,
lib/blueprinter/version.rb,
lib/blueprinter/extension.rb,
lib/blueprinter/extractor.rb,
lib/blueprinter/extensions.rb,
lib/blueprinter/reflection.rb,
lib/blueprinter/association.rb,
lib/blueprinter/deprecation.rb,
lib/blueprinter/empty_types.rb,
lib/blueprinter/transformer.rb,
lib/blueprinter/configuration.rb,
lib/blueprinter/view_collection.rb,
lib/blueprinter/blueprinter_error.rb,
lib/blueprinter/blueprint_validator.rb,
lib/blueprinter/helpers/base_helpers.rb,
lib/blueprinter/helpers/type_helpers.rb,
lib/blueprinter/errors/invalid_blueprint.rb,
lib/blueprinter/extractors/auto_extractor.rb,
lib/blueprinter/extractors/hash_extractor.rb,
lib/blueprinter/extractors/block_extractor.rb,
lib/blueprinter/formatters/date_time_formatter.rb,
lib/generators/blueprinter/blueprint_generator.rb,
lib/blueprinter/extractors/association_extractor.rb,
lib/blueprinter/extractors/public_send_extractor.rb

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

Defined Under Namespace

Modules: BaseHelpers, EmptyTypes, Errors, Generators, Reflection, TypeHelpers Classes: Association, AssociationExtractor, AutoExtractor, Base, BlockExtractor, BlueprintValidator, BlueprinterError, Configuration, DateTimeFormatter, DefinitionPlaceholder, Deprecation, Extension, Extensions, Extractor, Field, HashExtractor, PublicSendExtractor, Transformer, View, ViewCollection

Constant Summary collapse

VERSION =

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

'1.1.2'
EMPTY_COLLECTION =

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

'empty_collection'
EMPTY_HASH =

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

'empty_hash'
EMPTY_STRING =

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

'empty_string'

Class Method Summary collapse

Class Method Details

.configurationConfiguration

Returns:



13
14
15
# File 'lib/blueprinter.rb', line 13

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



17
18
19
# File 'lib/blueprinter.rb', line 17

def configure
  yield(configuration) if block_given?
end

.reset_configuration!Object

Resets global configuration.



22
23
24
# File 'lib/blueprinter.rb', line 22

def reset_configuration!
  @configuration = nil
end