Sha256: 8880ba193401a9ad7a4af28fdb9df681da0979e191a886585665594c76f35e8e

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

module Gumdrop
  module DSL
  
    def self.generate(&block)
      # Auto-generated, numerical, key for a site-level generator
      Gumdrop.generators[Gumdrop.generators.keys.length] = Generator.new(block)
    end
  
    def self.content_filter(&block)
      Gumdrop.content_filters << block
    end
  
    def self.skip(path)
      Gumdrop.blacklist << path
    end

    def self.ignore(path)
      Gumdrop.greylist << path
    end

    def self.view_helpers(&block)
      Gumdrop::ViewHelpers.class_eval &block
    end

    def self.configure(&block)
      Gumdrop::Configurator.instance_eval &block
    end
  
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gumdrop-0.5.2 lib/gumdrop/dsl.rb
gumdrop-0.5.1 lib/gumdrop/dsl.rb
gumdrop-0.5 lib/gumdrop/dsl.rb