lib/travis/client/entity.rb in travis-1.4.0 vs lib/travis/client/entity.rb in travis-1.5.0
- old
+ new
@@ -19,11 +19,11 @@
def self.subclass_for(key)
MAP.fetch(key)
end
- def self.aka(name)
- MAP[name.to_s] = self
+ def self.aka(*names)
+ names.each { |n| MAP[n.to_s] = self }
end
def self.one(key = nil)
MAP[key.to_s] = self if key
@one ||= key.to_s