lib/signore/settings.rb in signore-0.2.3 vs lib/signore/settings.rb in signore-0.2.4
- old
+ new
@@ -24,13 +24,17 @@
private :args
private
def forbidden
- args[1..-1].select { |tag| tag.start_with?('~') }.map { |tag| tag[1..-1] }
+ tag_names.select { |tag| tag.start_with?('~') }.map { |tag| tag[1..-1] }
end
def required
- args[1..-1].reject { |tag| tag.start_with?('~') }
+ tag_names.reject { |tag| tag.start_with?('~') }
+ end
+
+ def tag_names
+ args[1..-1] or []
end
end
end