remoe hash attributes (less magic) and make attributes on context explicit

This commit is contained in:
Torsten Ruger
2014-06-07 22:41:02 +03:00
parent 36f237c633
commit 6b715bbb1b
2 changed files with 6 additions and 33 deletions

View File

@ -1,17 +1,16 @@
require "support/hash_attributes"
module Vm
#currently just holding the object_space in here so we can have global access
class Context
# Make hash attributes to object attributes
include Support::HashAttributes
def initialize object_space
@attributes = {}
@attributes[:object_space] = object_space
@object_space = object_space
@locals = {}
end
attr_reader :attributes
attr_accessor :current_class
attr_reader :attributes ,:object_space
attr_accessor :current_class , :locals , :function
end
end