Class: TerraformConfig::Dsl::Context
- Inherits:
-
Object
- Object
- TerraformConfig::Dsl::Context
- Defined in:
- lib/core/terraform_config/dsl.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize ⇒ Context
constructor
A new instance of Context.
- #put(content, indent: 0) ⇒ Object
Constructor Details
#initialize ⇒ Context
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
#output ⇒ Object
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 |