rubyx/lib/vm/context.rb

18 lines
420 B
Ruby
Raw Normal View History

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