Method: Connect::Dsl#assign
- Defined in:
- lib/connect/dsl.rb
#assign(name, value, xdef = nil) ⇒ Object
Assign the value to the name
127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/connect/dsl.rb', line 127 def assign(name, value, xdef = nil) interpolator_not_allowed(name, 'lvar in assignment') process_multiline_value(value) if value.is_a?(Connect::Entry::Base) Connect.debug "Assign #{value.inspect} to #{name}." else Connect.debug "Assign #{value} to #{name}." end name = scoped_name_for(name) entry = ValuesTable.value_entry(name, value, nil, xdef) add_value(entry) end |