instance method []=

Ruby on Rails edge

Since edge

Signature

[]=(column, value)

No documentation comment.

Parameters

column req
value req
Source
# File activemodel/lib/active_model/indexed_row.rb, line 165
      def []=(column, value)
        if index = @indexes[column]
          @row[index] = value
        else
          raise KeyError, "key not found: #{column.inspect}"
        end
      end

Defined in activemodel/lib/active_model/indexed_row.rb line 165 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::IndexedRow::Mutable

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close