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

Class Method Details

.setup_legacyObject

Enables RubyPython.legacy_mode.



8
9
10
# File 'lib/rubypython/legacy.rb', line 8

def self.setup_legacy
  RubyPython.legacy_mode = true
end

.teardown_legacyObject

Disables RubyPython.legacy_mode.



13
14
15
# File 'lib/rubypython/legacy.rb', line 13

def self.teardown_legacy
  RubyPython.legacy_mode = false
end