Class: Solargraph::Bench
- Inherits:
-
Object
- Object
- Solargraph::Bench
- Defined in:
- lib/solargraph/bench.rb
Overview
An aggregation of a workspace and additional sources to be cataloged in an ApiMap.
Instance Attribute Summary collapse
- #opened ⇒ Array<Source> readonly
- #pins ⇒ Array<Pin::Base> readonly
- #workspace ⇒ Workspace readonly
Instance Method Summary collapse
-
#initialize(workspace: Workspace.new, opened: [], pins: []) ⇒ Bench
constructor
A new instance of Bench.
- #sources ⇒ Array<Source>
Constructor Details
#initialize(workspace: Workspace.new, opened: [], pins: []) ⇒ Bench
Returns a new instance of Bench.
19 20 21 22 23 |
# File 'lib/solargraph/bench.rb', line 19 def initialize workspace: Workspace.new, opened: [], pins: [] @workspace = workspace @opened = opened @pins = pins end |
Instance Attribute Details
#opened ⇒ Array<Source> (readonly)
12 13 14 |
# File 'lib/solargraph/bench.rb', line 12 def opened @opened end |
#pins ⇒ Array<Pin::Base> (readonly)
15 16 17 |
# File 'lib/solargraph/bench.rb', line 15 def pins @pins end |
#workspace ⇒ Workspace (readonly)
9 10 11 |
# File 'lib/solargraph/bench.rb', line 9 def workspace @workspace end |