Module: RubyPython::LegacyMode
- Defined in:
- lib/rubypython/legacy.rb
Overview
A quick way to activate Legacy Mode for a project. Requiring +‘rubypython/legacy’ automatically activates RubyPython.legacy_mode
on the project. This mode is deprecated and will be removed.
Class Method Summary collapse
-
.setup_legacy ⇒ Object
Enables
RubyPython.legacy_mode
. -
.teardown_legacy ⇒ Object
Disables
RubyPython.legacy_mode
.
Class Method Details
.setup_legacy ⇒ Object
Enables RubyPython.legacy_mode
.
8 9 10 |
# File 'lib/rubypython/legacy.rb', line 8 def self.setup_legacy RubyPython.legacy_mode = true end |
.teardown_legacy ⇒ Object
Disables RubyPython.legacy_mode
.
13 14 15 |
# File 'lib/rubypython/legacy.rb', line 13 def self.teardown_legacy RubyPython.legacy_mode = false end |