Class: IRB::DeprecatedConf
- Inherits:
-
Object
- Object
- IRB::DeprecatedConf
- Defined in:
- lib/irb/deprecated.rb
Constant Summary collapse
- DEFAULT_MESSAGE =
"please create a patch/ticket"
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
23 24 25 26 |
# File 'lib/irb/deprecated.rb', line 23 def [](key) IRB.deprecated("Usage of the IRB.conf hash for configuration is, currently, not supported", caller) nil end |
#[]=(key, value) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/irb/deprecated.rb', line 28 def []=(key, value) = nil case key when :PROMPT_MODE = "use `IRB.formatter.prompt = :#{value.downcase}'" IRB.formatter.prompt = "#{value.to_s.downcase}".to_sym when :USE_READLINE = "for now DietRB only has a readline module" when :SAVE_HISTORY = "history is always saved" end deprecated_conf key, , caller value end |
#deprecated_conf(key, message, caller) ⇒ Object
18 19 20 21 |
# File 'lib/irb/deprecated.rb', line 18 def deprecated_conf(key, , caller) ||= DEFAULT_MESSAGE IRB.deprecated_feature("IRB.conf[:#{key}]", , caller) end |