Module: Servitor::HasVariables

Included in:
ResourceConfiguration, ServiceConfiguration
Defined in:
lib/service/service_definition/variable.rb

Instance Method Summary collapse

Instance Method Details

#var(name, options = nil) ⇒ Object



13
14
15
# File 'lib/service/service_definition/variable.rb', line 13

def var(name, options=nil)
  variables << Variable.new(name, options)
end

#variablesObject



17
18
19
# File 'lib/service/service_definition/variable.rb', line 17

def variables
  @variables ||= []
end