Sha256: d742f11107f534f076d130087868a0b80533d3b2a8f470acbb13235008a3ede5
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
# encoding: utf-8 require "rake" require "rake/tasklib" require "inch/cli" module Inch # Holds all Rake tasks module Rake class Suggest < ::Rake::TaskLib attr_accessor :name attr_accessor :args # @param name [String] name of the Rake task # @param *args [Array] arguments to be passed to Suggest.run # @param &block [Proc] optional, evaluated inside the task definition def initialize(name = "inch", *args, &block) @name = name @args = args block.call(self) if block desc "Suggest objects to add documention to" task(@name) { suggest } end def suggest ::Inch::CLI::Command::Suggest.run(*@args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inch-0.4.10 | lib/inch/rake/suggest.rb |
inch-0.4.9 | lib/inch/rake/suggest.rb |
inch-0.4.8 | lib/inch/rake/suggest.rb |