Module: FactoryBot::Instrumentation
- Defined in:
- lib/factory_bot/instrumentation.rb,
lib/factory_bot/instrumentation/engine.rb,
lib/factory_bot/instrumentation/version.rb,
lib/factory_bot/instrumentation/configuration.rb,
app/controllers/factory_bot/instrumentation/root_controller.rb,
app/controllers/factory_bot/instrumentation/application_controller.rb
Overview
The gem version details.
Defined Under Namespace
Classes: ApplicationController, Configuration, Engine, RootController
Constant Summary collapse
- VERSION =
The version of the
factory_bot_instrumentationgem '2.1.0'
Class Attribute Summary collapse
-
.configuration ⇒ Configuration
Retrieve the current configuration object.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Configure the concern by providing a block which takes care of this task.
-
.gem_version ⇒ Gem::Version
Returns the version of the gem as a
Gem::Version. -
.reset_configuration! ⇒ Object
Reset the current configuration with the default one.
-
.version ⇒ String
Returns the version of gem as a string.
Class Attribute Details
.configuration ⇒ Configuration
Retrieve the current configuration object.
34 35 36 |
# File 'lib/factory_bot/instrumentation.rb', line 34 def configuration @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Configure the concern by providing a block which takes care of this task. Example:
FactoryBot::Instrumentation.configure do |conf|
# conf.xyz = [..]
end
44 45 46 |
# File 'lib/factory_bot/instrumentation.rb', line 44 def configure yield(configuration) end |
.gem_version ⇒ Gem::Version
Returns the version of the gem as a Gem::Version.
20 21 22 |
# File 'lib/factory_bot/instrumentation/version.rb', line 20 def gem_version Gem::Version.new VERSION end |
.reset_configuration! ⇒ Object
Reset the current configuration with the default one.
49 50 51 |
# File 'lib/factory_bot/instrumentation.rb', line 49 def reset_configuration! self.configuration = Configuration.new end |
.version ⇒ String
Returns the version of gem as a string.
13 14 15 |
# File 'lib/factory_bot/instrumentation/version.rb', line 13 def version VERSION end |