Fix YARD warnings
This commit is contained in:
parent
5ab982b84c
commit
29ca9b3f13
@ -787,7 +787,9 @@ Building target files is accomplished by using Environments.
|
||||
Environments can be created at the top level of the build script, or from
|
||||
within a task action block.
|
||||
|
||||
Environments are created with the `env` build script method.
|
||||
Environments are created with the
|
||||
[`env`](../yard/Rscons/Script/GlobalDsl.html#env-instance_method) build script
|
||||
method.
|
||||
Here is an example build script that creates an Environment and registers a
|
||||
Program build target:
|
||||
|
||||
|
@ -194,9 +194,6 @@ module Rscons
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
# @param options [Hash]
|
||||
# Options.
|
||||
#
|
||||
# @return [void]
|
||||
def configure
|
||||
co = ConfigureOp.new(@script)
|
||||
|
@ -72,24 +72,6 @@ module Rscons
|
||||
attr_reader :name
|
||||
|
||||
# Create an Environment object.
|
||||
#
|
||||
# @overload initialize(name, options)
|
||||
# @overload initialize(options)
|
||||
#
|
||||
# @param name [String]
|
||||
# Environment name. This determines the folder name used to store all
|
||||
# environment build files under the top-level build directory.
|
||||
# @param options [Hash]
|
||||
# @option options [Symbol] :echo
|
||||
# :command, :short, or :off (default :short)
|
||||
# @option options [Boolean] :exclude_builders
|
||||
# Whether to omit adding default builders (default false)
|
||||
# @option options [String, Array<String>] :use
|
||||
# Use flag(s). If specified, any configuration flags which were saved
|
||||
# with a corresponding `:use` value will be applied to this Environment.
|
||||
#
|
||||
# If a block is given, the Environment object is yielded to the block and
|
||||
# when the block returns, the {#process} method is automatically called.
|
||||
def initialize(*args, &block)
|
||||
@id = self.class.get_id
|
||||
if args.first.is_a?(String)
|
||||
|
@ -102,6 +102,38 @@ module Rscons
|
||||
end
|
||||
|
||||
# Create an environment.
|
||||
#
|
||||
# @overload env(name, options)
|
||||
# @param name [String]
|
||||
# Environment name. This determines the folder name used to store all
|
||||
# environment build files under the top-level build directory.
|
||||
# @param options [Hash]
|
||||
# @option options [Symbol] :echo
|
||||
# :command, :short, or :off (default :short)
|
||||
# @option options [Boolean] :exclude_builders
|
||||
# Whether to omit adding default builders (default false)
|
||||
# @option options [String, Array<String>] :use
|
||||
# Use flag(s). If specified, any configuration flags which were saved
|
||||
# with a corresponding `:use` value will be applied to this
|
||||
# Environment.
|
||||
#
|
||||
# @overload env(options)
|
||||
# @param options [Hash]
|
||||
# @option options [Symbol] :echo
|
||||
# :command, :short, or :off (default :short)
|
||||
# @option options [Boolean] :exclude_builders
|
||||
# Whether to omit adding default builders (default false)
|
||||
# @option options [String, Array<String>] :use
|
||||
# Use flag(s). If specified, any configuration flags which were saved
|
||||
# with a corresponding `:use` value will be applied to this
|
||||
# Environment.
|
||||
#
|
||||
# If a block is given it is immediately executed and passed the newly
|
||||
# created Environment object as an argument.
|
||||
#
|
||||
# @yield [env]
|
||||
# @yieldparam env [Environment]
|
||||
# The created environment.
|
||||
def env(*args, &block)
|
||||
Rscons.application.check_configure
|
||||
Environment.new(*args, &block)
|
||||
|
Loading…
x
Reference in New Issue
Block a user