Sha256: 72f0e208f43a321009efd2490cd404bee51445c5cc3939a707b84fc47dca06b5

Contents?: true

Size: 284 Bytes

Versions: 6

Compression:

Stored size: 284 Bytes

Contents

require_relative 'parameter_set'

module RakeFactory
  module Parameters
    def parameter_set
      @parameter_set ||= ParameterSet.new
    end

    def parameter(name, options = {})
      parameter = parameter_set.add(name, options)
      parameter.define_on(self)
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rake_factory-0.4.0 lib/rake_factory/parameters.rb
rake_factory-0.3.0 lib/rake_factory/parameters.rb
rake_factory-0.2.0 lib/rake_factory/parameters.rb
rake_factory-0.1.0 lib/rake_factory/parameters.rb
rake_factory-0.0.1 lib/rake_factory/parameters.rb
rake_tasklib-0.0.1 lib/rake_factory/parameters.rb