Module: RProgram

Defined in:
lib/rprogram/sudo.rb,
lib/rprogram/task.rb,
lib/rprogram/option.rb,
lib/rprogram/system.rb,
lib/rprogram/program.rb,
lib/rprogram/version.rb,
lib/rprogram/rprogram.rb,
lib/rprogram/sudo_task.rb,
lib/rprogram/non_option.rb,
lib/rprogram/option_list.rb,
lib/rprogram/exceptions/program_not_found.rb

Defined Under Namespace

Modules: System Classes: NonOption, Option, OptionList, Program, ProgramNotFound, Sudo, SudoTask, Task

Constant Summary collapse

VERSION =

Version of RProgram

'0.3.0'

Class Method Summary collapse

Class Method Details

.debugtrue, false

Returns Specifies whether debugging messages are enabled for RProgram. Defaults to false, if not set.

Returns:

  • (true, false)

    Specifies whether debugging messages are enabled for RProgram. Defaults to false, if not set.



7
8
9
# File 'lib/rprogram/rprogram.rb', line 7

def RProgram.debug
  @@rprogram_debug ||= false
end

.debug=(value) ⇒ true, false

Enables or disables debugging messages for RProgram.

Parameters:

  • value (true, false)

    The new value of RProgram.debug.

Returns:

  • (true, false)

    The new value of RProgram.debug.



20
21
22
# File 'lib/rprogram/rprogram.rb', line 20

def RProgram.debug=(value)
  @@rprogram_debug = value
end