Class: Blueprinter::Generators::BlueprintGenerator Private
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Blueprinter::Generators::BlueprintGenerator
- Defined in:
- lib/generators/blueprinter/blueprint_generator.rb
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.
Instance Attribute Summary collapse
- #options ⇒ Object private
Instance Method Summary collapse
- #create_blueprint ⇒ Object private
- #ensure_blueprint_dir ⇒ Object private
Instance Attribute Details
#options ⇒ Object
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.
8 9 10 |
# File 'lib/generators/blueprinter/blueprint_generator.rb', line 8 def end |
Instance Method Details
#create_blueprint ⇒ Object
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.
46 47 48 |
# File 'lib/generators/blueprinter/blueprint_generator.rb', line 46 def create_blueprint template "blueprint.rb", File.join(path, "#{file_path}_blueprint.rb") end |
#ensure_blueprint_dir ⇒ Object
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 43 44 |
# File 'lib/generators/blueprinter/blueprint_generator.rb', line 42 def ensure_blueprint_dir FileUtils.mkdir_p(path) unless File.directory?(path) end |