Class: Hekenga::Context
- Inherits:
-
Object
- Object
- Hekenga::Context
- Defined in:
- lib/hekenga/context.rb
Instance Method Summary collapse
- #actual? ⇒ Boolean
-
#initialize(test_mode: false) ⇒ Context
constructor
A new instance of Context.
- #test? ⇒ Boolean
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
7 8 9 |
# File 'lib/hekenga/context.rb', line 7 def actual? !@__test_mode end |
#test? ⇒ Boolean
11 12 13 |
# File 'lib/hekenga/context.rb', line 11 def test? !actual? end |