Class: Rucoa::Yard::DefinitionGenerators::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rucoa/yard/definition_generators/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment:, node:) ⇒ Base

Returns a new instance of Base.

Parameters:



24
25
26
27
28
29
30
# File 'lib/rucoa/yard/definition_generators/base.rb', line 24

def initialize(
  comment:,
  node:
)
  @comment = comment
  @node = node
end

Class Method Details

.call(comment:, node:) ⇒ Array<Rucoa::Definitions::Base>

Parameters:

Returns:



11
12
13
14
15
16
17
18
19
# File 'lib/rucoa/yard/definition_generators/base.rb', line 11

def call(
  comment:,
  node:
)
  new(
    comment: comment,
    node: node
  ).call
end

Instance Method Details

#callArray<Rucoa::Definitions::Base>

Returns:

Raises:

  • (::NotImplementedError)


33
34
35
# File 'lib/rucoa/yard/definition_generators/base.rb', line 33

def call
  raise ::NotImplementedError
end