2014-05-15 16:54:23 +03:00
|
|
|
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 program 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
|
|
|
|
|
2014-05-03 15:13:44 +03:00
|
|
|
def initialize program
|
|
|
|
@attributes = {}
|
2014-05-05 15:59:29 +03:00
|
|
|
@attributes[:program] = program
|
2014-05-02 08:02:25 +03:00
|
|
|
end
|
2014-05-13 18:21:24 +03:00
|
|
|
attr_reader :attributes
|
2014-05-02 08:02:25 +03:00
|
|
|
end
|
|
|
|
end
|