Module: Blueprinter
- Defined in:
- lib/blueprinter.rb,
lib/blueprinter/base.rb,
lib/blueprinter/view.rb,
lib/blueprinter/version.rb,
lib/blueprinter/extractor.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/helpers/base_helpers.rb,
lib/blueprinter/helpers/type_helpers.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
Defined Under Namespace
Modules: BaseHelpers, EmptyTypes, Generators, TypeHelpers
Classes: AssociationExtractor, AutoExtractor, Base, BlockExtractor, BlueprinterError, Configuration, DateTimeFormatter, DefinitionPlaceholder, Extractor, Field, HashExtractor, PublicSendExtractor, Transformer, View, ViewCollection
Constant Summary
collapse
- VERSION =
'0.23.4'.freeze
- EMPTY_COLLECTION =
"empty_collection".freeze
- EMPTY_HASH =
"empty_hash".freeze
- EMPTY_STRING =
"empty_string".freeze
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
28
29
30
|
# File 'lib/blueprinter/configuration.rb', line 28
def self.configuration
@configuration ||= Configuration.new
end
|
32
33
34
|
# File 'lib/blueprinter/configuration.rb', line 32
def self.configure
yield configuration if block_given?
end
|