add YARD comments to get to 100% YARD coverage

This commit is contained in:
Josh Holtrop 2019-08-17 16:42:14 -04:00
parent 937c964c3e
commit 9a627b2150
8 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@ module Rscons
module Ansi
class << self
# ANSI terminal reset sequence.
RESET = "\e[0m"
# Write a message to an IO with ANSI escape codes.

View File

@ -8,6 +8,7 @@ module Rscons
module Builders
module Mixins
# Mixin for builders needing to build object files.
module Object
include Depfile

View File

@ -8,6 +8,8 @@ module Rscons
include Mixins::Program
class << self
# Custom new method which will delegate to the correct class depending
# on the options specified.
def new(options, *more)
unless File.basename(options[:target])["."]
options[:target] += options[:env].expand_varref("${PROGSUFFIX}", options[:vars])

View File

@ -8,6 +8,8 @@ module Rscons
include Mixins::Program
class << self
# Custom new method which will delegate to the correct class depending
# on the options specified.
def new(options, *more)
libprefix = options[:env].expand_varref("${SHLIBPREFIX}", options[:vars])
unless File.basename(options[:target]).start_with?(libprefix)

View File

@ -7,6 +7,8 @@ module Rscons
include Mixins::Object
class << self
# Content component to add to build path to separate objects built
# using this builder from others.
def extra_path
"_shared"
end

View File

@ -1,6 +1,7 @@
require "rscons"
require "optparse"
# CLI usage string.
USAGE = <<EOF
Usage: #{$0} [global options] [operation] [operation options]

View File

@ -3,6 +3,7 @@ module Rscons
# The Script class encapsulates the state of a build script.
class Script
# DSL available to the Rsconscript.
class Dsl
# Create a Dsl.
def initialize(script)
@ -57,6 +58,7 @@ module Rscons
end
end
# DSL available to the 'configure' block.
class ConfigureDsl
# Create a ConfigureDsl.
#

View File

@ -1,4 +1,5 @@
module Rscons
# A collection of stand-alone utility methods.
module Util
class << self