Skip to content

Commit

Permalink
Add a stubbed Thread implementation for stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 9, 2013
1 parent de877b6 commit 3e950fc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions stdlib/thread.rb
@@ -0,0 +1,17 @@
class Thread
def self.current
@current ||= self.new
end

def initialize
@vars = {}
end

def [](key)
@vars[key]
end

def []=(key, val)
@vars[key] = val
end
end

0 comments on commit 3e950fc

Please sign in to comment.