Module: Mentor::Globals

Defined in:
lib/helpers/globals.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tpObject

Returns the value of attribute tp.



5
6
7
# File 'lib/helpers/globals.rb', line 5

def tp
  @tp
end

Instance Method Details

#disableObject



11
12
13
# File 'lib/helpers/globals.rb', line 11

def disable
  @enabled = false
end

#enableObject



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

def enable
  @enabled = true
end

#enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/helpers/globals.rb', line 15

def enabled?
  @enabled == true
end