add YARD comments to get to 100% YARD coverage

This commit is contained in:
josh committed 2019-08-17 16:42:14 -04:00
1 parent 937c964c3e
commit 9a627b2150
8 files changed
+12

No files matched your search

+1
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.
+1
View File
@@ -8,6 +8,7 @@ module Rscons
module Builders
module Mixins
# Mixin for builders needing to build object files.
module Object
include Depfile
+2
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])
+2
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)
+2
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
+1
View File
@@ -1,6 +1,7 @@
require "rscons"
require "optparse"
# CLI usage string.
USAGE = <<EOF
Usage: #{$0} [global options] [operation] [operation options]
+2
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.
#
+1
View File
@@ -1,4 +1,5 @@
module Rscons
# A collection of stand-alone utility methods.
module Util
class << self