Class: RubyTerraform::Options::Types::Flag
- Inherits:
-
Object
- Object
- RubyTerraform::Options::Types::Flag
- Defined in:
- lib/ruby_terraform/options/types/flag.rb
Instance Method Summary collapse
- #apply(builder) ⇒ Object
-
#initialize(name, value, **_opts) ⇒ Flag
constructor
A new instance of Flag.
Constructor Details
#initialize(name, value, **_opts) ⇒ Flag
Returns a new instance of Flag.
10 11 12 |
# File 'lib/ruby_terraform/options/types/flag.rb', line 10 def initialize(name, value, **_opts) super(name:, value:) end |
Instance Method Details
#apply(builder) ⇒ Object
14 15 16 |
# File 'lib/ruby_terraform/options/types/flag.rb', line 14 def apply(builder) value.resolve ? builder.with_flag(name) : builder end |