2014-05-15 15:54:23 +02:00
|
|
|
require "support/hash_attributes"
|
2014-05-02 07:02:25 +02:00
|
|
|
module Vm
|
2014-05-03 14:13:44 +02:00
|
|
|
|
2014-05-31 11:52:29 +02:00
|
|
|
#currently just holding the object_space in here so we can have global access
|
2014-05-02 07:02:25 +02:00
|
|
|
class Context
|
2014-05-03 21:18:04 +02:00
|
|
|
# Make hash attributes to object attributes
|
|
|
|
include Support::HashAttributes
|
|
|
|
|
2014-05-31 11:52:29 +02:00
|
|
|
def initialize object_space
|
2014-05-03 14:13:44 +02:00
|
|
|
@attributes = {}
|
2014-05-31 11:52:29 +02:00
|
|
|
@attributes[:object_space] = object_space
|
2014-05-02 07:02:25 +02:00
|
|
|
end
|
2014-05-31 13:35:33 +02:00
|
|
|
attr_reader :attributes
|
|
|
|
attr_accessor :current_class
|
|
|
|
|
2014-05-02 07:02:25 +02:00
|
|
|
end
|
|
|
|
end
|