class NilClass
Public Instance Methods
car()
click to toggle source
# File lib/rubylisp/ext.rb, line 49 def car nil end
cdr()
click to toggle source
# File lib/rubylisp/ext.rb, line 53 def cdr nil end
empty?()
click to toggle source
# File lib/rubylisp/ext.rb, line 69 def empty? true end
environment?()
click to toggle source
# File lib/rubylisp/ext.rb, line 105 def environment? false end
eq?(other)
click to toggle source
# File lib/rubylisp/ext.rb, line 25 def eq?(other) other.nil? || (other.pair? && other.empty?) end
equal?(other)
click to toggle source
# File lib/rubylisp/ext.rb, line 29 def equal?(other) other.nil? || (other.pair? && other.empty?) end
eqv?(other)
click to toggle source
# File lib/rubylisp/ext.rb, line 21 def eqv?(other) other.nil? || (other.pair? && other.empty?) end
evaluate(env)
click to toggle source
# File lib/rubylisp/ext.rb, line 41 def evaluate(env) nil end
evaluate_each(env)
click to toggle source
# File lib/rubylisp/ext.rb, line 45 def evaluate_each(env) nil end
false?()
click to toggle source
# File lib/rubylisp/ext.rb, line 7 def false? false end
flatten()
click to toggle source
# File lib/rubylisp/ext.rb, line 140 def flatten nil end
function?()
click to toggle source
# File lib/rubylisp/ext.rb, line 124 def function? false end
length()
click to toggle source
# File lib/rubylisp/ext.rb, line 73 def length 0 end
lisp_object?()
click to toggle source
# File lib/rubylisp/ext.rb, line 136 def lisp_object? true end
list?()
click to toggle source
# File lib/rubylisp/ext.rb, line 97 def list? true end
method_missing(name, *args, &block)
click to toggle source
Calls superclass method
# File lib/rubylisp/ext.rb, line 109 def method_missing(name, *args, &block) is_list_walk = name[0] == ?c && name[-1] == ?r && (name[1..-2].chars.all? {|e| "ad".include?(e)}) if is_list_walk nil else #puts "nil#method_missing name: #{name} args #{args}" #puts caller super end end
number?()
click to toggle source
# File lib/rubylisp/ext.rb, line 85 def number? false end
object?()
click to toggle source
# File lib/rubylisp/ext.rb, line 128 def object? false end
pair?()
click to toggle source
# File lib/rubylisp/ext.rb, line 93 def pair? false end
primitive?()
click to toggle source
# File lib/rubylisp/ext.rb, line 120 def primitive? false end
print_string()
click to toggle source
# File lib/rubylisp/ext.rb, line 33 def print_string self.to_s end
print_string_helper()
click to toggle source
# File lib/rubylisp/ext.rb, line 37 def print_string_helper "" end
quoted()
click to toggle source
# File lib/rubylisp/ext.rb, line 65 def quoted nil end
set_car!(s)
click to toggle source
# File lib/rubylisp/ext.rb, line 57 def set_car!(s) nil end
set_cdr!(s)
click to toggle source
# File lib/rubylisp/ext.rb, line 61 def set_cdr!(s) nil end
string?()
click to toggle source
# File lib/rubylisp/ext.rb, line 81 def string? false end
symbol?()
click to toggle source
# File lib/rubylisp/ext.rb, line 89 def symbol? false end
to_ary()
click to toggle source
# File lib/rubylisp/ext.rb, line 16 def to_ary [] end
to_s()
click to toggle source
# File lib/rubylisp/ext.rb, line 11 def to_s "()" end
true?()
click to toggle source
# File lib/rubylisp/ext.rb, line 3 def true? false end
type()
click to toggle source
# File lib/rubylisp/ext.rb, line 132 def type :nil end
value()
click to toggle source
# File lib/rubylisp/ext.rb, line 77 def value nil end
vector?()
click to toggle source
# File lib/rubylisp/ext.rb, line 101 def vector? false end