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
- #warned_of_deprecation ⇒ Object writeonly private
Instance Method Summary collapse
- #warn_of_deprecation ⇒ Object private
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_deprecation ⇒ Object
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 |