lib/chunky_png/palette.rb in chunky_png-1.0.1 vs lib/chunky_png/palette.rb in chunky_png-1.1.0

- old
+ new

@@ -13,12 +13,12 @@ # @see ChunkyPNG::Color class Palette < SortedSet # Builds a new palette given a set (Enumerable instance) of colors. # - # @param [Enumerbale<Integer>] enum The set of colors to include in this palette. - # This Enumerbale can contains duplicates. + # @param [Enumerable<Integer>] enum The set of colors to include in this palette. + # This Enumerable can contains duplicates. # @param [Array] decoding_map An array of colors in the exact order at which # they appeared in the palette chunk, so that this array can be used for decoding. def initialize(enum, decoding_map = nil) super(enum) @decoding_map = decoding_map if decoding_map @@ -171,10 +171,10 @@ ChunkyPNG::Chunk::Palette.new('PLTE', colors.pack('C*')) end # Determines the most suitable colormode for this palette. - # @return [Integer] The colormode which would create the smalles possible + # @return [Integer] The colormode which would create the smallest possible # file for images that use this exact palette. def best_color_settings if black_and_white? [ChunkyPNG::COLOR_GRAYSCALE, 1] elsif grayscale?