Class: Solargraph::Pin::Signature
- Defined in:
- lib/solargraph/pin/signature.rb
Instance Attribute Summary
Attributes inherited from Callable
#block, #parameters, #return_type
Attributes inherited from Closure
Attributes inherited from Base
#code_object, #location, #name, #path, #return_type, #source, #type_location
Attributes included from Common
Instance Method Summary collapse
- #generics ⇒ Object
- #identity ⇒ Object
-
#initialize(**splat) ⇒ Signature
constructor
A new instance of Signature.
Methods inherited from Callable
#arity_matches?, #block?, #mandatory_positional_param_count, #parameter_names, #resolve_generics_from_context, #resolve_generics_from_context_until_complete, #to_rbs, #transform_types
Methods inherited from Closure
#binder, #context, #gates, #rbs_generics, #to_rbs
Methods inherited from Base
#==, #all_rooted?, #best_location, #comments, #completion_item_kind, #deprecated?, #desc, #directives, #docstring, #erase_generics, #filename, #infer, #inspect, #macros, #maybe_directives?, #nearly?, #presence_certain?, #probe, #probed?, #proxied?, #proxy, #realize, #resolve_generics, #resolve_generics_from_context, #symbol_kind, #to_rbs, #to_s, #transform_types, #try_merge!, #type_desc, #typify, #variable?
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(**splat) ⇒ Signature
Returns a new instance of Signature.
4 5 6 |
# File 'lib/solargraph/pin/signature.rb', line 4 def initialize **splat super(**splat) end |
Instance Method Details
#generics ⇒ Object
8 9 10 |
# File 'lib/solargraph/pin/signature.rb', line 8 def generics @generics ||= [].freeze end |
#identity ⇒ Object
12 13 14 |
# File 'lib/solargraph/pin/signature.rb', line 12 def identity @identity ||= "signature#{object_id}" end |