Module: Parser::Deprecation Private

Included in:
Rewriter, Source::Rewriter, Source::TreeRewriter
Defined in:
lib/parser/deprecation.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#warned_of_deprecation=(value) ⇒ Object (writeonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
# File 'lib/parser/deprecation.rb', line 8

def warned_of_deprecation=(value)
  @warned_of_deprecation = value
end

Instance Method Details

#warn_of_deprecationObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
# File 'lib/parser/deprecation.rb', line 9

def warn_of_deprecation
  @warned_of_deprecation ||= warn(self::DEPRECATION_WARNING) || true
end