Class: Hekenga::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/hekenga/context.rb

Instance Method Summary collapse

Constructor Details

#initialize(test_mode: false) ⇒ Context

Returns a new instance of Context.



3
4
5
# File 'lib/hekenga/context.rb', line 3

def initialize(test_mode: false)
  @__test_mode = test_mode
end

Instance Method Details

#actual?Boolean

Returns:

  • (Boolean)


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

def actual?
  !@__test_mode
end

#test?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/hekenga/context.rb', line 11

def test?
  !actual?
end