Module: Mentor::Globals
- Defined in:
- lib/helpers/globals.rb
Constant Summary collapse
- DIR =
__dir__ + '/../..'
Instance Attribute Summary collapse
-
#cancel_exit_after_error ⇒ Object
Returns the value of attribute cancel_exit_after_error.
-
#tp ⇒ Object
Returns the value of attribute tp.
Instance Method Summary collapse
Instance Attribute Details
#cancel_exit_after_error ⇒ Object
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 |
#tp ⇒ Object
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
9 10 11 |
# File 'lib/helpers/globals.rb', line 9 def cancel_exit_after_error? @cancel_exit_after_error end |
#disable ⇒ Object
17 18 19 |
# File 'lib/helpers/globals.rb', line 17 def disable @enabled = false end |
#enable ⇒ Object
13 14 15 |
# File 'lib/helpers/globals.rb', line 13 def enable @enabled = true end |
#enabled? ⇒ Boolean
21 22 23 |
# File 'lib/helpers/globals.rb', line 21 def enabled? @enabled == true end |