module Terraspace::Compiler::Dsl::Syntax::Mod::Variable
Public Instance Methods
variable(name, props={})
click to toggle source
# File lib/terraspace/compiler/dsl/syntax/mod/variable.rb, line 3 def variable(name, props={}) variable = @structure[:variable] ||= {} default = { type: "string" } props.reverse_merge!(default) variable[name] = props end