class Solargraph::Pin::DelegatedMethod
def print_chain(chain)
-
(String)
-
Parameters:
-
chain
(Source::Chain
) --
def print_chain(chain) out = +'' chain.links.each_with_index do |link, index| if index > 0 if Source::Chain::Constant out << '::' unless link.word.start_with?('::') else out << '.' end end out << link.word end out end