Skip to content
Browse files

Fix some warnings

  • Loading branch information...
1 parent 54400d5 commit 048cfa6d2421888b85c82cf822b7cf496a78e544 @joshuaclayton committed
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/palette/color_scheme.rb
View
11 lib/palette/color_scheme.rb
@@ -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)
@@ -26,7 +32,6 @@ def background(shade)
end
def method_missing(name, *args)
- @rules ||= []
@rules << Palette::Rule.new(name.to_s, *args)
end
@@ -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
@@ -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

0 comments on commit 048cfa6

Please sign in to comment.
Something went wrong with that request. Please try again.