Class: RubyTerraform::Options::Types::Standard

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_terraform/options/types/standard.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, value, **opts) ⇒ Standard

Returns a new instance of Standard.



12
13
14
15
16
17
18
# File 'lib/ruby_terraform/options/types/standard.rb', line 12

def initialize(name, value, **opts)
  super(
    name:, value:,
    separator: opts[:separator],
    placement: opts[:placement]
  )
end

Instance Method Details

#apply(builder) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/ruby_terraform/options/types/standard.rb', line 20

def apply(builder)
  builder.with_option(
    name,
    value.render,
    separator:,
    placement:
  )
end