Module: Chemlab
- Defined in:
- lib/chemlab.rb,
lib/chemlab/page.rb,
lib/chemlab/element.rb,
lib/chemlab/library.rb,
lib/chemlab/version.rb,
lib/chemlab/component.rb,
lib/chemlab/cli/stubber.rb,
lib/chemlab/runtime/env.rb,
lib/chemlab/attributable.rb,
lib/chemlab/cli/generator.rb,
lib/chemlab/configuration.rb,
lib/chemlab/runtime/logger.rb,
lib/chemlab/cli/new_library.rb,
lib/chemlab/runtime/browser.rb
Overview
Chemlaboratory
Defined Under Namespace
Modules: Attributable, CLI, Element, Library, Runtime Classes: Component, Configuration, Page
Constant Summary collapse
- VERSION =
'0.11.1'
Class Method Summary collapse
-
.configuration(&block) ⇒ Object
Returns the global [Chemlab::Configuration] object.
-
.configure {|Configuration| ... } ⇒ Object
Yields the global configuration to a block.
Class Method Details
.configuration(&block) ⇒ Object
Returns the global [Chemlab::Configuration] object. While you can use this method to access the configuration, the more common convention is to use Chemlab.configure.
27 28 29 |
# File 'lib/chemlab.rb', line 27 def self.configuration(&block) @configuration ||= Chemlab::Configuration.new(&block) end |
.configure {|Configuration| ... } ⇒ Object
Yields the global configuration to a block.
16 17 18 |
# File 'lib/chemlab.rb', line 16 def self.configure(&block) yield configuration(&block) if block_given? end |