remoe hash attributes (less magic) and make attributes on context explicit
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user