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

Class Method Details

.configurationConfiguration

Returns the singleton class’s configuration object

Returns:



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

Parameters:

  • block (Block)

Yields:

Returns:



16
17
18
19
# File 'lib/refried.rb', line 16

def configure(&block)
  yield(configuration)
  configuration
end

.tubesBeaneater::Tubes

Returns the Beaneater::Tubes object, which is the collection of all the Beaneater Tube objects

Returns:

  • (Beaneater::Tubes)

    the collection of Beaneater Tubes



31
32
33
# File 'lib/refried.rb', line 31

def tubes
  @tubes ||= Tubes.new
end