module SeaFood
def self.configuration
def self.configuration @configuration ||= Configuration.new end
def self.configure
def self.configure yield(configuration) if block_given? end
def configuration
def configuration @configuration ||= Configuration.new end
def configuration=(configuration)
def configuration=(configuration) # need to reset SeaFood instance if configuration changes self.instance = nil @configuration = configuration end
def configure
def configure yield configuration if block_given? end