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
|
Environments can be created at the top level of the build script, or from
|
||||||
within a task action block.
|
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
|
Here is an example build script that creates an Environment and registers a
|
||||||
Program build target:
|
Program build target:
|
||||||
|
|
||||||
|
@ -194,9 +194,6 @@ module Rscons
|
|||||||
#
|
#
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
# @param options [Hash]
|
|
||||||
# Options.
|
|
||||||
#
|
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def configure
|
def configure
|
||||||
co = ConfigureOp.new(@script)
|
co = ConfigureOp.new(@script)
|
||||||
|
@ -72,24 +72,6 @@ module Rscons
|
|||||||
attr_reader :name
|
attr_reader :name
|
||||||
|
|
||||||
# Create an Environment object.
|
# 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)
|
def initialize(*args, &block)
|
||||||
@id = self.class.get_id
|
@id = self.class.get_id
|
||||||
if args.first.is_a?(String)
|
if args.first.is_a?(String)
|
||||||
|
@ -102,6 +102,38 @@ module Rscons
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Create an environment.
|
# 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)
|
def env(*args, &block)
|
||||||
Rscons.application.check_configure
|
Rscons.application.check_configure
|
||||||
Environment.new(*args, &block)
|
Environment.new(*args, &block)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user