Module: Mentor::Globals

Defined in:
lib/helpers/globals.rb

Constant Summary collapse

DIR =
__dir__ + '/../..'

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cancel_exit_after_errorObject

Returns the value of attribute cancel_exit_after_error.



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

def cancel_exit_after_error
  @cancel_exit_after_error
end

#tpObject

Returns the value of attribute tp.



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

def tp
  @tp
end

Instance Method Details

#cancel_exit_after_error?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/helpers/globals.rb', line 9

def cancel_exit_after_error?
  @cancel_exit_after_error
end

#disableObject



17
18
19
# File 'lib/helpers/globals.rb', line 17

def disable
  @enabled = false
end

#enableObject



13
14
15
# File 'lib/helpers/globals.rb', line 13

def enable
  @enabled = true
end

#enabled?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/helpers/globals.rb', line 21

def enabled?
  @enabled == true
end