Module: CapriccIo

Defined in:
lib/capriccio.rb,
lib/capriccio/parser.rb,
lib/capriccio/version.rb,
lib/capriccio/runtime/method.rb,
lib/capriccio/runtime/object.rb,
lib/capriccio/runtime/message.rb,
lib/capriccio/runtime/bootstrap.rb

Defined Under Namespace

Classes: CObject, Error, Message, Method, Parser

Constant Summary collapse

VERSION =
'0.2.0'
Runtime =
object.clone

Class Method Summary collapse

Class Method Details

.eval(code) ⇒ Object



19
20
21
22
# File 'lib/capriccio.rb', line 19

def self.eval(code)
  message = Message.parse(code)
  message.call(Runtime)
end

.load(file) ⇒ Object



24
25
26
# File 'lib/capriccio.rb', line 24

def self.load(file)
  self.eval File.read(File.join(File.dirname(__FILE__), "./capriccio/stdlib/#{file}"))
end