Class: ConvenientService::Service::Plugins::HasMermaidFlowchart::Entities::Flowchart::Entities::Code::Commands::GenerateLines

Inherits:
ConvenientService::Support::Command show all
Includes:
ConvenientService::Support::Delegate
Defined in:
lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConvenientService::Support::Concern

included

Methods inherited from ConvenientService::Support::Command

[], call

Constructor Details

#initialize(code:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



50
51
52
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb', line 50

def initialize(code:)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb', line 21

def code
  @code
end

Instance Method Details

#callArray<String>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Array<String>)


59
60
61
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb', line 59

def call
  [first_line, *service_lines]
end

#flowchartConvenientService::Service::Plugins::HasMermaidFlowchart::Entities::Flowchart

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb', line 28

delegate :flowchart, to: :code

#serviceConvenientService::Service

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb', line 35

delegate :service, to: :flowchart

#settingsConvenientService::Service::Plugins::HasMermaidFlowchart::Entities::Flowchart::Entities::Settings

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



42
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb', line 42

delegate :settings, to: :flowchart