Class: BELParser::Language::Syntax::InvalidFunctionSyntaxError
- Inherits:
-
SyntaxError
- Object
- SyntaxResult
- SyntaxError
- BELParser::Language::Syntax::InvalidFunctionSyntaxError
- Defined in:
- lib/bel_parser/language/syntax/invalid_function.rb
Overview
InvalidFunctionSyntaxError indicates a function name was invalid.
Instance Attribute Summary collapse
-
#invalid_function ⇒ Object
readonly
Gets the invalid function literal.
Attributes inherited from SyntaxResult
#expression_node, #specification
Instance Method Summary collapse
-
#initialize(function, spec, invalid_function) ⇒ InvalidFunctionSyntaxError
constructor
A new instance of InvalidFunctionSyntaxError.
- #msg ⇒ Object
Methods inherited from SyntaxError
Methods inherited from SyntaxResult
Constructor Details
#initialize(function, spec, invalid_function) ⇒ InvalidFunctionSyntaxError
Returns a new instance of InvalidFunctionSyntaxError.
33 34 35 36 |
# File 'lib/bel_parser/language/syntax/invalid_function.rb', line 33 def initialize(function, spec, invalid_function) super(function, spec) @invalid_function = invalid_function end |
Instance Attribute Details
#invalid_function ⇒ Object (readonly)
Gets the invalid function literal.
31 32 33 |
# File 'lib/bel_parser/language/syntax/invalid_function.rb', line 31 def invalid_function @invalid_function end |
Instance Method Details
#msg ⇒ Object
38 39 40 |
# File 'lib/bel_parser/language/syntax/invalid_function.rb', line 38 def msg %(Invalid function "#{invalid_function}".) end |