class RBT::ColourMakeInstall
Public Class Methods
[](i = '')
click to toggle source
new( i = nil, run_already = true ) { || ... }
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
# File lib/rbt/make/colour_make_install.rb, line 34 def initialize( i = nil, run_already = true ) reset set_input(i) if block_given? # ===================================================================== # # Merge the given block into the commandline-arguments next: # ===================================================================== # @hash_commandline_arguments.update(yield) end run if run_already end
Public Instance Methods
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
RBT::Base#reset
# File lib/rbt/make/colour_make_install.rb, line 52 def reset super() # ======================================================================= # # === @hash_commandline_arguments # # The following Hash will store commandline arguments given to this # class. I use this rather than yield directly because I feel an # instance variable is less transient than depending on block_given? # calls primarily. # ======================================================================= # @hash_commandline_arguments = { run_make_install: true } end
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/make/colour_make_install.rb, line 70 def run # ======================================================================= # # We will not handle anything here but instead simply delegate # the block towards class RBT::Make. # ======================================================================= # RBT::Make.new(@hash_commandline_arguments).run end