lib/page_magic.rb in page_magic-1.0.4 vs lib/page_magic.rb in page_magic-1.1.0

- old
+ new

@@ -12,9 +12,17 @@ require 'page_magic/instance_methods' require 'page_magic/drivers' # module PageMagic - PageMagic is an api for modelling pages in a website. module PageMagic + extend SingleForwardable + + # @!method matcher + # define match critera for loading a page object class + # @see Matcher#initialize + # @return [Matcher] + def_delegator Matcher, :new, :matcher + class << self # @return [Drivers] registered drivers def drivers @drivers ||= Drivers.new.tap(&:load) end