Module: RBS::MethodNameHelper

Defined in:
lib/rbs/errors.rb

Instance Method Summary collapse

Instance Method Details

#method_name_stringObject



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

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

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