class Spectra::Palette
Public Instance Methods
directory()
click to toggle source
Pathing
# File lib/spectra/views/palette.rb, line 16 def directory @directory || "#{Dir.home}/Library/Colors/" end
filename()
click to toggle source
Calls superclass method
# File lib/spectra/views/palette.rb, line 20 def filename super || "#{self.prefix}-palette.clr" end
renamer()
click to toggle source
# File lib/spectra/views/palette.rb, line 8 def renamer @renamer || lambda { |color, prefix| color.name.camelize(true) + color.suffix } end