lib/protos/icon/inhouse.rb in protos-icon-0.3.0 vs lib/protos/icon/inhouse.rb in protos-icon-0.3.1

- old
+ new

@@ -1,15 +1,15 @@ # frozen_string_literal: true module Protos module Icon module Inhouse - def self.build(name) + def self.build(name, ...) filepath = lookup(name) Component.new(filepath) end - def self.lookup(name) + def self.lookup(name, ...) assets = Pathname.new(GEM_ROOT).join("assets/inhouse") assets .join("#{name}.svg") .tap do |path|