Class: Relisp::Vector

Inherits:
Array show all
Defined in:
lib/relisp/type_conversion/programming_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Array

default_elisp_type, default_elisp_type=, #elisp_type, #elisp_type=

Class Method Details

.from_elisp(object) ⇒ Object



279
280
281
# File 'lib/relisp/type_conversion/programming_types.rb', line 279

def self.from_elisp(object)
  new(super(object))
end

Instance Method Details

#to_elispObject



283
284
285
286
287
288
289
# File 'lib/relisp/type_conversion/programming_types.rb', line 283

def to_elisp
  print_string = '[ '
  each do |elt|
    print_string << elt.to_elisp << ' '
  end
  print_string << ']'
end