module Opal::Deprecations
Attributes
raise_on_deprecation[RW]
Public Instance Methods
deprecation(message)
click to toggle source
# File lib/opal/deprecations.rb, line 7 def deprecation(message) message = "DEPRECATION WARNING: #{message}" if defined?(@raise_on_deprecation) && @raise_on_deprecation raise message else warn message end end