Exception: Inform::DuplicateVerb
- Defined in:
- lib/story_teller/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.
223 224 225 226 227 228 |
# File 'lib/story_teller/grammar_parser.rb', line 223 def initialize(verb) super() @verb = verb @file = UnknownString @line = UnknownString end |
Instance Attribute Details
#file=(value) ⇒ Object (writeonly)
Sets the attribute file
221 222 223 |
# File 'lib/story_teller/grammar_parser.rb', line 221 def file=(value) @file = value end |
#line=(value) ⇒ Object (writeonly)
Sets the attribute line
221 222 223 |
# File 'lib/story_teller/grammar_parser.rb', line 221 def line=(value) @line = value end |
Instance Method Details
#to_s ⇒ Object
230 231 232 |
# File 'lib/story_teller/grammar_parser.rb', line 230 def to_s "(#{@file}):#{@line}: verb error, verb '#{@verb}', already defined" end |