class Rmk::Emptylib
force creation of a (possibly emty) library
Attributes
base[RW]
#base name of empty source file that will be created
Public Class Methods
new()
click to toggle source
Calls superclass method
Rmk::Processor.new
# File tools/emptylib.rb, line 20 def initialize super @slot = SLOTS[:code_generator] @requires = [Touch, CC] data = tool_params(:Emptylib, generator.configuration) @base = data[:base] || 'emptysource' # Let touch tool do the work. dummy = dummy_source_file touch.files << dummy generator.add_file(dummy) end
Public Instance Methods
dummy_source_file()
click to toggle source
# File tools/emptylib.rb, line 34 def dummy_source_file "$builddir/#{base}.c" end