Class: TerraformConfig::Dsl::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/core/terraform_config/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

Returns a new instance of Context.



80
81
82
# File 'lib/core/terraform_config/dsl.rb', line 80

def initialize
  @output = ""
end

Instance Attribute Details

#outputObject

Returns the value of attribute output.



78
79
80
# File 'lib/core/terraform_config/dsl.rb', line 78

def output
  @output
end

Instance Method Details

#put(content, indent: 0) ⇒ Object



84
85
86
# File 'lib/core/terraform_config/dsl.rb', line 84

def put(content, indent: 0)
  @output += content.to_s.indent(indent)
end