class BELParser::Language::Semantics::FunctionDeprecationWarning

Represents a {SemanticsWarning} when a {BELParser::Parsers::AST::Function} references a deprecated function for the {BELParser::Language::Specification}.

Attributes

deprecated_function[R]

Public Class Methods

new(function_node, spec, deprecated_function) click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics/function_deprecation.rb, line 33
def initialize(function_node, spec, deprecated_function)
  super(function_node, spec)
  @deprecated_function = deprecated_function
end

Public Instance Methods

to_s() click to toggle source
# File lib/bel_parser/language/semantics/function_deprecation.rb, line 38
def to_s
  %(Function "#{deprecated_function}" is deprecated.)
end