Module: RBS::MethodNameHelper

Defined in:
lib/rbs/errors.rb

Instance Method Summary collapse

Instance Method Details

#method_name_stringObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/rbs/errors.rb', line 3

def method_name_string()
  separator = case kind
              when :instance
                "#"
              when :singleton
                "."
              else
                raise
              end

  "#{type_name}#{separator}#{method_name}"
end