Sha256: ef9944a87c502f09be5b1cc910ac8d49e86aab3e6756fd001b6d67d52c7c4551

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

module Screenshots
  class Configuration
    attr_accessor :blog_assets_url, :image_extension

    def initialize
      self.blog_assets_url = ''
      self.image_extension = 'jpg'
    end
  end

  class << self
    attr_accessor :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration) if block_given?
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
screenshots-0.0.4 lib/screenshots/configuration.rb
screenshots-0.0.3 lib/screenshots/configuration.rb
screenshots-0.0.2 lib/screenshots/configuration.rb
screenshots-0.0.1 lib/screenshots/configuration.rb