Class: Solargraph::Collection::Stdlib
- Defined in:
- lib/solargraph/collection/stdlib.rb
Overview
Cacheable stdlib pins.
Instance Attribute Summary collapse
-
#library ⇒ Object
readonly
Returns the value of attribute library.
Instance Method Summary collapse
- #cache_file ⇒ Object
-
#initialize(library) ⇒ Stdlib
constructor
A new instance of Stdlib.
- #pins ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(library) ⇒ Stdlib
Returns a new instance of Stdlib.
11 12 13 14 |
# File 'lib/solargraph/collection/stdlib.rb', line 11 def initialize library super() @library = library end |
Instance Attribute Details
#library ⇒ Object (readonly)
Returns the value of attribute library.
8 9 10 |
# File 'lib/solargraph/collection/stdlib.rb', line 8 def library @library end |
Instance Method Details
#cache_file ⇒ Object
20 21 22 |
# File 'lib/solargraph/collection/stdlib.rb', line 20 def cache_file File.join CacheDir.stdlib_dir, "#{library}.ser" end |