Method: CurrentObject::InstanceMethods#current!
- Defined in:
- lib/current_object.rb
#current! ⇒ Object
current! - Stores the class instance as the “current” instance for that class.
@foo.current!
13 14 15 |
# File 'lib/current_object.rb', line 13 def current! Thread.current[self.class.name] = self end |