class ObjectFramework::Capabilities::Definitions
Owns application definitions in a separate Ruby Box. Requires Ruby to start with RUBY_BOX=1; enabling it later has no effect. Raises Unsupported when Ruby Box is disabled.
Public Class Methods
Source
# File lib/object_framework/capabilities.rb, line 29 def initialize raise Unsupported, "Enable Ruby Box at process boot with RUBY_BOX=1" unless Ruby::Box.enabled? @box = Ruby::Box.new end
Public Instance Methods
Source
# File lib/object_framework/capabilities.rb, line 37 def constant(name); @box.const_get(name, false); end
Source
# File lib/object_framework/capabilities.rb, line 36 def evaluate(source); @box.eval(source); end
Source
# File lib/object_framework/capabilities.rb, line 34 def load(path); @box.load(File.expand_path(path)); end
Source
# File lib/object_framework/capabilities.rb, line 35 def require(path); @box.require(path); end