Class: Solargraph::Bench
- Inherits:
-
Object
- Object
- Solargraph::Bench
- Defined in:
- lib/solargraph/bench.rb
Overview
A container of source maps and workspace data to be cataloged in an ApiMap.
Instance Attribute Summary collapse
- #external_requires ⇒ Set<String> readonly
- #source_maps ⇒ Set<SourceMap> readonly
- #workspace ⇒ Workspace readonly
Instance Method Summary collapse
-
#initialize(source_maps: [], workspace: Workspace.new, external_requires: []) ⇒ Bench
constructor
A new instance of Bench.
Constructor Details
#initialize(source_maps: [], workspace: Workspace.new, external_requires: []) ⇒ Bench
Returns a new instance of Bench.
21 22 23 24 25 |
# File 'lib/solargraph/bench.rb', line 21 def initialize source_maps: [], workspace: Workspace.new, external_requires: [] @source_maps = source_maps.to_set @workspace = workspace @external_requires = external_requires.to_set end |
Instance Attribute Details
#external_requires ⇒ Set<String> (readonly)
16 17 18 |
# File 'lib/solargraph/bench.rb', line 16 def external_requires @external_requires end |
#source_maps ⇒ Set<SourceMap> (readonly)
10 11 12 |
# File 'lib/solargraph/bench.rb', line 10 def source_maps @source_maps end |
#workspace ⇒ Workspace (readonly)
13 14 15 |
# File 'lib/solargraph/bench.rb', line 13 def workspace @workspace end |