class SFRP::Raw::AmbiguousNameError

Public Class Methods

new(target_str, selection_strs) click to toggle source
# File lib/sfrp/raw/exception.rb, line 16
def initialize(target_str, selection_strs)
  @target_str = target_str
  @selection_strs = selection_strs
end

Public Instance Methods

message() click to toggle source
# File lib/sfrp/raw/exception.rb, line 21
def message
  "Ambiguous name '#{@target_str}':\n" +
  @selection_strs.map { |s| '  ' + s }.join("\n")
end