Class: Cuprum::Cli::Commands::File::ResolveTemplate

Inherits:
Cuprum::Command
  • Object
show all
Defined in:
lib/cuprum/cli/commands/file/resolve_template.rb

Overview

Utility command for resolving a template and parameterized values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templates:) ⇒ ResolveTemplate

Returns a new instance of ResolveTemplate.

Parameters:

  • templates (Array<Hash>)

    the defined templates.



12
13
14
15
16
# File 'lib/cuprum/cli/commands/file/resolve_template.rb', line 12

def initialize(templates:)
  super()

  @templates = templates
end

Instance Attribute Details

#templatesArray<Hash> (readonly)

Returns the defined templates.

Returns:

  • (Array<Hash>)

    the defined templates.



19
20
21
# File 'lib/cuprum/cli/commands/file/resolve_template.rb', line 19

def templates
  @templates
end