Module: RubyRunJs::ScopeHelper
- Included in:
- GlobalScope, LocalScope, ObjectScope
- Defined in:
- lib/ruby_run_js/scope.rb
Instance Method Summary collapse
Instance Method Details
#create_and_set_binding(var_label, var_value) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ruby_run_js/scope.rb', line 10 def create_and_set_binding(var_label,var_value) unless has_binding(var_label) create_binding(var_label) set_binding(var_label, var_value) end end |
#create_bindings(labels) ⇒ Object
6 7 8 |
# File 'lib/ruby_run_js/scope.rb', line 6 def create_bindings(labels) labels.each { |label| create_binding(labels) } end |