Method: Bcome::WorkspaceContext#set
- Defined in:
- lib/workspace_context.rb
#set(object, current_object, spawn = true) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/workspace_context.rb', line 5 def set(object, current_object, spawn = true) @object = object main_context = IRB.conf[:MAIN_CONTEXT] @object.main_context = main_context.workspace if main_context @object.previous_workspace_object = current_object if current_object # Spawn is initiated when a user wants to shift workspace context. # We don't spawn whilst setting up the hierarchy for quick contexts spawn_for_object(@object) if spawn return end |