--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Assigns the JavaScript <tt>variable</tt> the given <tt>value</tt>.
- !ruby/struct:SM::Flow::P 
  body: "Examples:"
- !ruby/struct:SM::Flow::VERB 
  body: " # Generates: my_string = &quot;This is mine!&quot;;\n page.assign 'my_string', 'This is mine!'\n\n # Generates: record_count = 33;\n page.assign 'record_count', 33\n\n # Generates: tabulated_total = 47\n page.assign 'tabulated_total', @total_from_cart\n"
full_name: ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods#assign
is_singleton: false
name: assign
params: (variable, value)
visibility: public
