clean up a couple YARD warnings

This commit is contained in:
Josh Holtrop 2013-11-05 16:37:18 -05:00
parent 30564af558
commit 545b893ef4

View File

@ -6,7 +6,7 @@ module Rscons
# contains a collection of construction variables, options, builders, and # contains a collection of construction variables, options, builders, and
# rules for building targets. # rules for building targets.
class Environment class Environment
# [Hash] of {"builder_name" => builder_object} pairs. # Hash of +{"builder_name" => builder_object}+ pairs.
attr_reader :builders attr_reader :builders
# Create an Environment object. # Create an Environment object.
@ -164,7 +164,7 @@ module Rscons
# @param short_desc [String] Message to print if the Environment's :echo # @param short_desc [String] Message to print if the Environment's :echo
# mode is set to :short # mode is set to :short
# @param command [Array] The command to execute. # @param command [Array] The command to execute.
# @param options [Hash] Optional options to pass to {Kernel#system}. # @param options [Hash] Optional options to pass to Kernel#system.
def execute(short_desc, command, options = {}) def execute(short_desc, command, options = {})
print_command = proc do print_command = proc do
puts command.map { |c| c =~ /\s/ ? "'#{c}'" : c }.join(' ') puts command.map { |c| c =~ /\s/ ? "'#{c}'" : c }.join(' ')