Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some warnings
  • Loading branch information
joshuaclayton committed Aug 25, 2011
1 parent 54400d5 commit 048cfa6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/palette/color_scheme.rb
Expand Up @@ -5,7 +5,13 @@ class ColorScheme
attr_reader :name

def initialize(color_name)
@name = color_name
@name = color_name
@notes = nil
@links = []
@rules = []
@reset = false
@background = nil
@author_name = nil
end

def author(author_name)
Expand All @@ -26,7 +32,6 @@ def background(shade)
end

def method_missing(name, *args)
@rules ||= []
@rules << Palette::Rule.new(name.to_s, *args)
end

Expand All @@ -48,7 +53,6 @@ def #{sass_method}(hex)

%w(String Float).each do |constant|
define_method(constant) do |*args|
@rules ||= []
@rules << Palette::Rule.new(constant, *args)
end
end
Expand Down Expand Up @@ -76,7 +80,6 @@ def to_s
def link(*args)
options = args.last.is_a?(Hash) ? args.pop : {}

@links ||= []
args.each do |arg|
@links << Link.new(arg, options[:to])
end
Expand Down

0 comments on commit 048cfa6

Please sign in to comment.