Sha256: 11575f0707a38cc60c98a4e7469111246e331296d7af81727c250813954a99bb
Contents?: true
Size: 902 Bytes
Versions: 2
Compression:
Stored size: 902 Bytes
Contents
module IconGenerator class Builder include IconGenerator::Validator # Sets up the source and destination instance variables, and # ensures they validate. # # @param source [String] the source image file # @param destination [String] the output directory def initialize(source, destination) @source = source @destination = destination validate_arguments @source, @destination end # Requests a build of the given image type. # # @param type [Symbol] the image type, `:touch` or `:favicon` def build(type) if type == :touch IconGenerator::TouchBuilder.new.build(@source, @destination) elsif type == :favicon IconGenerator::FaviconBuilder.new.build(@source, @destination) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
icon_generator-0.9.0 | lib/icon_generator/builder.rb |
icon_generator-0.8.1 | lib/icon_generator/builder.rb |