lib/mirrors/package_mirror.rb in mirrors-0.0.2 vs lib/mirrors/package_mirror.rb in mirrors-0.0.3
- old
+ new
@@ -1,9 +1,13 @@
require 'mirrors/mirror'
require 'mirrors/package_inference'
module Mirrors
class PackageMirror < Mirror
+ def self.reflect(name)
+ new(name)
+ end
+
def name
@subject.sub(/.*:/, '')
end
def fullname