Sha256: c243611e15be103bfe3fda74334bddd7d38e3eec789f878e726f41474613ad2e
Contents?: true
Size: 933 Bytes
Versions: 1
Compression:
Stored size: 933 Bytes
Contents
# # File 'base.rb' created on 15 ago 2008 at 22:34:26. # # See 'dokkit.rb' or +LICENSE+ for license information. # # (C)2006-2008 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). # require 'logger' require 'rake/tasklib' module Dokkit module TaskLib class Base < Rake::TaskLib attr_reader :ns attr_accessor :logger def initialize(ns) @ns = ns @logger ||= Logger.new(STDOUT) end protected def define_tasks namespace @ns do private_methods.select { |meth| meth =~ /define_.+_task/ }.each { |meth| send meth } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dokkit-0.5.0 | lib/dokkit/tasklib/base.rb |