Module: Refried
- Defined in:
- lib/refried.rb,
lib/refried/puter.rb,
lib/refried/tubes.rb,
lib/refried/configuration.rb
Overview
Refried core API methods
based in part on the design of backburner (https://github.com/nesquena/backburner MIT license)
Defined Under Namespace
Modules: Puter Classes: Configuration, Tubes
Class Method Summary collapse
-
.configuration ⇒ Configuration
Returns the singleton class’s configuration object.
-
.configure(&block) {|configuration| ... } ⇒ Configuration
Allows the user to set configuration options by yielding the configuration block.
-
.tubes ⇒ Beaneater::Tubes
Returns the Beaneater::Tubes object, which is the collection of all the Beaneater Tube objects.
Class Method Details
.configuration ⇒ Configuration
Returns the singleton class’s configuration object
24 25 26 |
# File 'lib/refried.rb', line 24 def configuration @configuration ||= Configuration.new end |
.configure(&block) {|configuration| ... } ⇒ Configuration
Allows the user to set configuration options
by yielding the configuration block
16 17 18 19 |
# File 'lib/refried.rb', line 16 def configure(&block) yield(configuration) configuration end |
.tubes ⇒ Beaneater::Tubes
Returns the Beaneater::Tubes object, which is the collection of all the Beaneater Tube objects
31 32 33 |
# File 'lib/refried.rb', line 31 def tubes @tubes ||= Tubes.new end |