Class: Hanami::CLI::Generators::App::RubyClassFile Private

Inherits:
RubyFile
  • Object
show all
Defined in:
lib/hanami/cli/generators/app/ruby_class_file.rb

Overview

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

Since:

  • 2.0.0

Instance Method Summary collapse

Methods inherited from RubyFile

#create, #fully_qualified_name, #path, #write

Constructor Details

#initialize(parent_class_name: nil, **args) ⇒ RubyClassFile

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 a new instance of RubyClassFile.

Since:

  • 2.0.0



11
12
13
14
15
# File 'lib/hanami/cli/generators/app/ruby_class_file.rb', line 11

def initialize(parent_class_name: nil, **args)
  super

  @parent_class_name = parent_class_name
end