Class: Rucoa::Yard::DefinitionGenerators::Base
- Inherits:
-
Object
- Object
- Rucoa::Yard::DefinitionGenerators::Base
- Defined in:
- lib/rucoa/yard/definition_generators/base.rb
Direct Known Subclasses
AttributeReaderDefinitionGenerator, AttributeWriterDefinitionGenerator, ConstantAssignmentDefinitionGenerator, MethodDefinitionGenerator, ModuleDefinitionGenerator
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Array<Rucoa::Definitions::Base>
-
#initialize(comment:, node:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(comment:, node:) ⇒ Base
Returns a new instance of Base.
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>
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
#call ⇒ Array<Rucoa::Definitions::Base>
33 34 35 |
# File 'lib/rucoa/yard/definition_generators/base.rb', line 33 def call raise ::NotImplementedError end |