I\'m writing a gem which I would like to work with and without the Rails environment.
I have a Configuration class to allow configuration of the gem:
Configuration
Try refactoring to:
def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) if block_given? end