Module: Deprecate

Defined in:
lib/deprecate.rb,
lib/deprecate/version.rb

Defined Under Namespace

Modules: Deprecatable

Constant Summary collapse

VERSION =
'0.0.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



16
17
18
# File 'lib/deprecate.rb', line 16

def config
  @config
end

.warned_methodsObject (readonly)

Returns the value of attribute warned_methods.



16
17
18
# File 'lib/deprecate.rb', line 16

def warned_methods
  @warned_methods
end

Class Method Details

.configure {|@config| ... } ⇒ Object

Yields:



18
19
20
21
# File 'lib/deprecate.rb', line 18

def configure
  yield @config if block_given?
  @config
end

.reset_warnings!Object



23
24
25
# File 'lib/deprecate.rb', line 23

def reset_warnings!
  @warned_methods.clear
end