| Class | Origin::Selector |
| In: |
lib/origin/selector.rb
|
| Parent: | Smash |
The selector is a special kind of hash that knows how to serialize values coming into it as well as being alias and locale aware for key names.
Store the value in the selector for the provided key. The selector will handle all necessary serialization and localization in this step.
@example Store a value in the selector.
selector.store(:key, "testing")
@param [ String, Symbol ] key The name of the attribute. @param [ Object ] value The value to add.
@return [ Object ] The stored object.
@since 1.0.0