Exception: SFRP::Raw::AmbiguousNameError
- Inherits:
-
CompileError
- Object
- StandardError
- CompileError
- SFRP::Raw::AmbiguousNameError
- Defined in:
- lib/sfrp/raw/exception.rb
Instance Method Summary collapse
-
#initialize(target_str, selection_strs, source_position) ⇒ AmbiguousNameError
constructor
A new instance of AmbiguousNameError.
- #message ⇒ Object
Constructor Details
#initialize(target_str, selection_strs, source_position) ⇒ AmbiguousNameError
Returns a new instance of AmbiguousNameError.
17 18 19 20 21 |
# File 'lib/sfrp/raw/exception.rb', line 17 def initialize(target_str, selection_strs, source_position) @target_str = target_str @selection_strs = selection_strs @source_position = source_position end |
Instance Method Details
#message ⇒ Object
23 24 25 26 |
# File 'lib/sfrp/raw/exception.rb', line 23 def "Ambiguous name '#{@target_str}':\n" + @selection_strs.map { |s| ' ' + s }.join("\n") end |