Class: Loba::Internal::Deprecated

Inherits:
Object
  • Object
show all
Defined in:
lib/loba.rb

Overview

Internal class for deprecation warnings.

Class Method Summary collapse

Class Method Details

._0_3_0(value) ⇒ Object

Deprecations as of version 0.3.0

Parameters:

  • value (boolean)

    deprecated value supplied in original call to use in deprecation message



227
228
229
230
231
# File 'lib/loba.rb', line 227

def _0_3_0(value)
  bool = value ? "true" : "false"
  verb = value ? "enabled" : "disabled"
  warn "DEPRECATION WARNING: use {:production => #{bool}} instead to indicate notice is #{verb} in production"
end