Sha256: 1b82496ad78f62b6c973695f65b28def64fdd2cf71e8f1a8c9628713c5f7cfae

Contents?: true

Size: 291 Bytes

Versions: 33

Compression:

Stored size: 291 Bytes

Contents

module RakeFactory
  module Definable
    def inherited(inheritor)
      super(inheritor)
      inheritor.singleton_class.class_eval do
        define_method :define do |*args, &block|
          inheritor.new(*args, &block).define_on(Rake.application)
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rake_factory-0.30.0.pre.5 lib/rake_factory/definable.rb
rake_factory-0.30.0.pre.4 lib/rake_factory/definable.rb
rake_factory-0.30.0.pre.3 lib/rake_factory/definable.rb
rake_factory-0.30.0.pre.2 lib/rake_factory/definable.rb
rake_factory-0.30.0.pre.1 lib/rake_factory/definable.rb
rake_factory-0.29.0 lib/rake_factory/definable.rb
rake_factory-0.28.0.pre.2 lib/rake_factory/definable.rb
rake_factory-0.28.0.pre.1 lib/rake_factory/definable.rb
rake_factory-0.27.0 lib/rake_factory/definable.rb
rake_factory-0.26.0.pre.1 lib/rake_factory/definable.rb
rake_factory-0.24.0.pre.2 lib/rake_factory/definable.rb
rake_factory-0.25.0 lib/rake_factory/definable.rb
rake_factory-0.24.0.pre.1 lib/rake_factory/definable.rb
rake_factory-0.23.0 lib/rake_factory/definable.rb
rake_factory-0.22.0.pre.1 lib/rake_factory/definable.rb
rake_factory-0.21.0 lib/rake_factory/definable.rb
rake_factory-0.20.0.pre.1 lib/rake_factory/definable.rb
rake_factory-0.19.0 lib/rake_factory/definable.rb
rake_factory-0.18.0.pre.2 lib/rake_factory/definable.rb
rake_factory-0.18.0.pre.1 lib/rake_factory/definable.rb