Sha256: 0388a5cebd6a8be5ecfb34e05f59d2540aea76b8152ce2135f8f27467d8bb9f6
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
dir_root = File.dirname(File.absolute_path(__FILE__)) require dir_root + "/ase/version" require dir_root + "/ase/color_modes/cmyk" require dir_root + "/ase/color_modes/gray" require dir_root + "/ase/color_modes/rgb" require dir_root + "/ase/file" require dir_root + "/ase/palette" require dir_root + "/ase/reader" require dir_root + "/ase/writer" class ASE include Reader include Writer attr_accessor :palettes def initialize(file=nil) @file = file @palettes = {} end def add_palette(palette) raise "Can only pass an ASE::Palette" unless palette.is_a?(ASE::Palette) @palettes[palette.name] = palette end alias :<< :add_palette def [](name) @palettes[name] end def method_missing(method, *args, &block) if @palettes.has_key?(method.to_s) return @palettes[method.to_s] end super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ase-2.0.0 | lib/ase.rb |