Class: Binding

Inherits:
Object show all
Defined in:
lib/openc3/core_ext/binding.rb

Overview

OpenC3 specific additions to the Ruby Binding class

Instance Method Summary collapse

Instance Method Details

#set_variables(variables) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/openc3/core_ext/binding.rb', line 25

def set_variables(variables)
  variables ||= {}
  variables.each do |variables_key, variables_value|
    local_variable_set(variables_key.intern, variables_value)
  end
  self
end