Sha256: 6d2ffde3a7868c1d6921340884b217e1e771790d451794e127d7c5b4130ec907

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

module BuzzImage
  class Configuration
    attr_accessor :width, :height, :buzz_level

    def initialize
      @width = 90
      @height = 90
      @buzz_level = 1.5
    end

    # Override default options with the provided ones in block
    def set_options(&block)
      block.yield(self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buzz_image-0.0.1 lib/buzz_image/configuration.rb