Exception: Inform::DuplicateVerb
- Defined in:
- lib/runtime/grammar_parser.rb
Overview
The DuplicateVerb error class
Constant Summary collapse
- UnknownString =
'unknown'.freeze
Instance Attribute Summary collapse
-
#file ⇒ Object
writeonly
Sets the attribute file.
-
#line ⇒ Object
writeonly
Sets the attribute line.
Instance Method Summary collapse
-
#initialize(verb) ⇒ DuplicateVerb
constructor
A new instance of DuplicateVerb.
- #to_s ⇒ Object
Constructor Details
#initialize(verb) ⇒ DuplicateVerb
Returns a new instance of DuplicateVerb.
225 226 227 228 229 230 |
# File 'lib/runtime/grammar_parser.rb', line 225 def initialize(verb) super() @verb = verb @file = UnknownString @line = UnknownString end |
Instance Attribute Details
#file=(value) ⇒ Object (writeonly)
Sets the attribute file
223 224 225 |
# File 'lib/runtime/grammar_parser.rb', line 223 def file=(value) @file = value end |
#line=(value) ⇒ Object (writeonly)
Sets the attribute line
223 224 225 |
# File 'lib/runtime/grammar_parser.rb', line 223 def line=(value) @line = value end |
Instance Method Details
#to_s ⇒ Object
232 233 234 |
# File 'lib/runtime/grammar_parser.rb', line 232 def to_s "(#{@file}):#{@line}: verb error, verb '#{@verb}', already defined" end |