class BELParser::Script::Syntax::UnsupportedBELVersionWarning
UnsupportedBELVersionError represents the use of an unsupported BEL
version string.
Attributes
unsupported_version[R]
Gets the unsupported bel version.
Public Class Methods
new(document_property_node, unsupported_version)
click to toggle source
Calls superclass method
BELParser::Language::Syntax::SyntaxWarning::new
# File lib/bel_parser/script/syntax/unsupported_bel_version.rb, line 40 def initialize(document_property_node, unsupported_version) super(document_property_node, nil) @unsupported_version = unsupported_version @default = BELParser::Language.default_version end
Public Instance Methods
msg()
click to toggle source
# File lib/bel_parser/script/syntax/unsupported_bel_version.rb, line 46 def msg <<-MSG.gsub(/^ +/, '').delete("\n") Unsupported BEL version "#@unsupported_version". Setting BEL version to the default version "#@default". MSG end