Class: Solargraph::Pin::Reference

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/pin/reference.rb,
lib/solargraph/pin/reference/extend.rb,
lib/solargraph/pin/reference/include.rb,
lib/solargraph/pin/reference/prepend.rb,
lib/solargraph/pin/reference/require.rb,
lib/solargraph/pin/reference/override.rb,
lib/solargraph/pin/reference/superclass.rb

Direct Known Subclasses

Extend, Include, Override, Prepend, Require, Superclass

Defined Under Namespace

Classes: Extend, Include, Override, Prepend, Require, Superclass

Constant Summary

Constants included from Logging

Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS

Instance Attribute Summary collapse

Attributes inherited from Base

#code_object, #directives, #docstring, #location, #name, #path, #return_type, #source, #type_location

Attributes included from Common

#closure, #context, #location

Instance Method Summary collapse

Methods inherited from Base

#==, #all_location_text, #all_rooted?, #assert_same, #assert_same_array_content, #assert_same_count, #assert_same_macros, #assert_source_provided, #best_location, #choose, #choose_longer, #choose_node, #choose_pin_attr, #choose_pin_attr_with_same_name, #combine_directives, #combine_name, #combine_return_type, #combine_with, #comments, #completion_item_kind, #deprecated?, #desc, #dodgy_return_type_source?, #erase_generics, #filename, #identity, #infer, #inner_desc, #inspect, #macros, #maybe_directives?, #nearly?, #needs_consistent_name?, #prefer_rbs_location, #presence_certain?, #probe, #probed?, #proxied?, #proxy, #rbs_location?, #realize, #reset_generated!, #resolve_generics, #resolve_generics_from_context, #symbol_kind, #to_rbs, #to_s, #transform_types, #type_desc, #typify, #variable?

Methods included from Logging

logger

Methods included from Documenting

#documentation, normalize_indentation, strip_html_comments

Methods included from Conversions

#completion_item, #completion_item_kind, #deprecated?, #detail, #link_documentation, #probed?, #proxied?, #reset_conversions, #resolve_completion_item, #signature_help, #text_documentation

Methods included from Common

#binder, #comments, #name, #namespace, #path, #return_type

Constructor Details

#initialize(generic_values: [], **splat) ⇒ Reference

Returns a new instance of Reference.

Parameters:

  • generic_values (Array<String>) (defaults to: [])


16
17
18
19
# File 'lib/solargraph/pin/reference.rb', line 16

def initialize generic_values: [], **splat
  super(**splat)
  @generic_values = generic_values
end

Instance Attribute Details

#generic_valuesObject (readonly)

Returns the value of attribute generic_values.



13
14
15
# File 'lib/solargraph/pin/reference.rb', line 13

def generic_values
  @generic_values
end