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



292
293
294
# File 'lib/relisp/type_conversion/programming_types.rb', line 292

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

Instance Method Details

#to_elispObject



296
297
298
299
300
301
302
# File 'lib/relisp/type_conversion/programming_types.rb', line 296

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