class Lisp::FfiNew
Public Class Methods
new(name)
click to toggle source
# File lib/rubylisp/ffi_new.rb, line 5 def initialize(name) @value = name end
Public Instance Methods
apply_to(args, env)
click to toggle source
# File lib/rubylisp/ffi_new.rb, line 9 def apply_to(args, env) @klass = Object.const_get(@value) NativeObject.with_value(@klass.new) end
apply_to_without_evaluating(args, env)
click to toggle source
# File lib/rubylisp/ffi_new.rb, line 14 def apply_to_without_evaluating(args, env) @klass = Object.const_get(@value) NativeObject.with_value(@klass.new) end
primitive?()
click to toggle source
# File lib/rubylisp/ffi_new.rb, line 23 def primitive? true end
to_s()
click to toggle source
# File lib/rubylisp/ffi_new.rb, line 19 def to_s "#{@value}." end
type()
click to toggle source
# File lib/rubylisp/ffi_new.rb, line 27 def type :primitive end