Module: Chemlab
- Defined in:
- lib/chemlab.rb,
lib/chemlab/page.rb,
lib/chemlab/element.rb,
lib/chemlab/version.rb,
lib/chemlab/resource.rb,
lib/chemlab/component.rb,
lib/chemlab/runtime/env.rb,
lib/chemlab/support/api.rb,
lib/chemlab/attributable.rb,
lib/chemlab/configuration.rb,
lib/chemlab/api_fabricator.rb,
lib/chemlab/runtime/logger.rb,
lib/chemlab/support/waiter.rb,
lib/chemlab/runtime/browser.rb,
lib/chemlab/support/logging.rb,
lib/chemlab/support/repeater.rb,
lib/chemlab/runtime/api_client.rb
Overview
Chemlaboratory
Defined Under Namespace
Modules: ApiFabricator, Attributable, Element, Runtime, Support Classes: Component, Configuration, Page, Resource
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
-
.configuration ⇒ Object
Returns the global [Configuration](Configuration) object.
-
.configure {|Configuration| ... } ⇒ Object
Yields the global configuration to a block.
Class Method Details
.configuration ⇒ Object
Returns the global [Configuration](Configuration) object. While you can use this method to access the configuration, the more common convention is to use Chemlab.configure.
37 38 39 |
# File 'lib/chemlab.rb', line 37 def self.configuration @configuration ||= Chemlab::Configuration.new end |
.configure {|Configuration| ... } ⇒ Object
Yields the global configuration to a block.
26 27 28 |
# File 'lib/chemlab.rb', line 26 def self.configure yield configuration if block_given? end |