Module: Nyanko::Test
- Defined in:
- lib/nyanko/test.rb
Class Method Summary collapse
Instance Method Summary collapse
- #disable_unit(unit_name) ⇒ Object (also: #disable_ext)
- #enable_unit(unit_name) ⇒ Object (also: #enable_ext)
Class Method Details
.activations ⇒ Object
4 5 6 |
# File 'lib/nyanko/test.rb', line 4 def activations @activations ||= {} end |
.included(base) ⇒ Object
8 9 10 |
# File 'lib/nyanko/test.rb', line 8 def included(base) base.send :include, UnitProxyProvider end |
Instance Method Details
#disable_unit(unit_name) ⇒ Object Also known as: disable_ext
18 19 20 |
# File 'lib/nyanko/test.rb', line 18 def disable_unit(unit_name) Test.activations[unit_name] = false end |
#enable_unit(unit_name) ⇒ Object Also known as: enable_ext
13 14 15 |
# File 'lib/nyanko/test.rb', line 13 def enable_unit(unit_name) Test.activations[unit_name] = true end |