Class: Elparser::SExpNil

Inherits:
AbstractSExpAtom show all
Defined in:
lib/elparser.rb

Instance Method Summary collapse

Methods inherited from AbstractSExpAtom

#atom?

Methods inherited from AbstractSExp

#==, #atom?, #cons?

Instance Method Details

#list?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/elparser.rb', line 35

def list?
  true
end

#to_rubyObject

do nothing



44
45
46
# File 'lib/elparser.rb', line 44

def to_ruby
  nil
end

#to_sObject



38
39
40
# File 'lib/elparser.rb', line 38

def to_s
  "nil"
end

#visitObject



41
42
43
# File 'lib/elparser.rb', line 41

def visit
  # do nothing
end