Sha256: c4f4713c52908e6b307f339b2e85578fb0bee8f979e8639ca1cfe13acbd2016c

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

module SiteChecker
  module DSL
    { :check_site              => :check,
      :collected_local_pages   => :local_pages,
      :collected_remote_pages  => :remote_pages,
      :collected_local_images  => :local_images,
      :collected_remote_images => :remote_images,
      :collected_problems      => :problems
     }.each do |dsl_method, method|
      define_method dsl_method do |*args, &block|
        SiteChecker.send method, *args, &block
      end
    end
  end
end

include SiteChecker::DSL

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
site_checker-0.4.0 lib/site_checker/dsl.rb
site_checker-0.3.0 lib/site_checker/dsl.rb
site_checker-0.2.1 lib/site_checker/dsl.rb
site_checker-0.2.0 lib/site_checker/dsl.rb
site_checker-0.2.0.pre lib/site_checker/dsl.rb