module SeaFood

def self.configuration

Method to access the configuration
def self.configuration
  @configuration ||= Configuration.new
end

def self.configure

Method to configure the gem
def self.configure
  yield(configuration) if block_given?
end

def configuration

Public: Returns SeaFood::Configuration instance.
def configuration
  @configuration ||= Configuration.new
end

def configuration=(configuration)

Public: Sets SeaFood::Configuration instance.
def configuration=(configuration)
  # need to reset SeaFood instance if configuration changes
  self.instance = nil
  @configuration = configuration
end

def configure

Yields SeaFood::Configuration instance.
def configure
  yield configuration if block_given?
end