Sha256: 39581d06e64681b5960fd5e2c17ed57d7627533fd3ba522d0bcebee84076403f

Contents?: true

Size: 669 Bytes

Versions: 6

Compression:

Stored size: 669 Bytes

Contents

module Rscons
  # Class to hold an object that knows how to build a certain type of file.
  class Builder
    # Return a set of default variable values for the Environment to use
    # unless the user overrides any.
    # @param env [Environment] The Environment.
    def default_variables(env)
      {}
    end

    # Return whether this builder object is capable of producing a given target
    # file name from a given source file name.
    # @param target [String] The target file name.
    # @param source [String, Array] The source file name(s).
    # @param env [Environment] The Environment.
    def produces?(target, source, env)
      false
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rscons-0.0.6 lib/rscons/builder.rb
rscons-0.0.5 lib/rscons/builder.rb
rscons-0.0.4 lib/rscons/builder.rb
rscons-0.0.3 lib/rscons/builder.rb
rscons-0.0.2 lib/rscons/builder.rb
rscons-0.0.1 lib/rscons/builder.rb