remove module monkey-patching; add Builder#name()

This commit is contained in:
josh committed 2013-12-31 13:10:00 -05:00
1 parent 08bc390d40
commit cdb3352b4e
5 files changed
+7 -15

No files matched your search

+6
View File
@@ -3,6 +3,12 @@ require "fileutils"
module Rscons
# Class to hold an object that knows how to build a certain type of file.
class Builder
# Return the name of the builder.
# If not overridden this defaults to the last component of the class name.
def name
self.class.name.split(":").last
end
# Return a set of default variable values for the Environment to use
# unless the user overrides any.
# @param env [Environment] The Environment.