Class: Cuprum::Cli::Commands::File::RenderErb
- Inherits:
-
Cuprum::Command
- Object
- Cuprum::Command
- Cuprum::Cli::Commands::File::RenderErb
- Defined in:
- lib/cuprum/cli/commands/file/render_erb.rb
Overview
Utility command for generating file contents from an .erb template.
Instance Attribute Summary collapse
-
#template_name ⇒ String?
readonly
The name of the rendered template.
Instance Method Summary collapse
-
#initialize(template_name: nil) ⇒ RenderErb
constructor
A new instance of RenderErb.
Constructor Details
#initialize(template_name: nil) ⇒ RenderErb
Returns a new instance of RenderErb.
17 18 19 20 21 |
# File 'lib/cuprum/cli/commands/file/render_erb.rb', line 17 def initialize(template_name: nil) super() @template_name = template_name end |
Instance Attribute Details
#template_name ⇒ String? (readonly)
Returns the name of the rendered template.
24 25 26 |
# File 'lib/cuprum/cli/commands/file/render_erb.rb', line 24 def template_name @template_name end |