Class: Relisp::List

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



254
255
256
# File 'lib/relisp/type_conversion/programming_types.rb', line 254

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

Instance Method Details

#to_elispObject



258
259
260
261
262
263
264
# File 'lib/relisp/type_conversion/programming_types.rb', line 258

def to_elisp
  print_string = '(list '
  each do |elt|
    print_string << elt.to_elisp << ' '
  end
  print_string << ')'
end