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

Class Method Details

.configurationObject

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.

Examples:

Chemlab.configuration.drb_port = 1234

See Also:



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.

Examples:

Chemlab.configure do |config|
  config.base_url = 'https://example.com'
end

Yields:



26
27
28
# File 'lib/chemlab.rb', line 26

def self.configure
  yield configuration if block_given?
end