Method: JsDuck::Warning::Deprecated#set

Defined in:
lib/jsduck/warning/deprecated.rb

#set(enabled, path_pattern = nil, params = []) ⇒ Object

Enables or disables the mapped :nodoc warning.

Raises:



22
23
24
25
# File 'lib/jsduck/warning/deprecated.rb', line 22

def set(enabled, path_pattern=nil, params=[])
  @nodoc.set(enabled, path_pattern, @params)
  raise WarnException, "Warning type #{@type} is deprecated, use nodoc(#{@params.join(',')}) instead"
end