class ActiveModel::AttributeSet
def write_from_user(name, value)
Experimental RBS support (using type sampling data from the type_fusion
project).
type ActiveModel__AttributeSet_write_from_user_value = String | nil | Integer | Time type ActiveModel__AttributeSet_write_from_user_return_value = String | nil | Integer | Time def write_from_user: (String name, ActiveModel__AttributeSet_write_from_user_value value) -> ActiveModel__AttributeSet_write_from_user_return_value
This signature was generated using 26 samples from 2 applications.
def write_from_user(name, value) raise FrozenError, "can't modify frozen attributes" if frozen? @attributes[name] = self[name].with_value_from_user(value) value end