module Berater::TestMode

Attributes

test_mode[R]

Public Instance Methods

reset() click to toggle source
Calls superclass method
# File lib/berater/test_mode.rb, line 16
def reset
  super
  @test_mode = nil
end
test_mode=(mode) click to toggle source
# File lib/berater/test_mode.rb, line 8
def test_mode=(mode)
  unless [ nil, :pass, :fail ].include?(mode)
    raise ArgumentError, "invalid mode: #{Berater.test_mode}"
  end

  @test_mode = mode
end