Class: Elparser::AbstractSExp

Inherits:
Object
  • Object
show all
Defined in:
lib/elparser.rb

Direct Known Subclasses

AbstractSExpAtom, AbstractSExpCons, SExpQuoted

Instance Method Summary collapse

Instance Method Details

#==(obj) ⇒ Object



17
18
19
# File 'lib/elparser.rb', line 17

def ==(obj)
  self.class == obj.class && self.to_s == obj.to_s
end

#atom?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/elparser.rb', line 8

def atom?
  false
end

#cons?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/elparser.rb', line 11

def cons?
  false
end

#list?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/elparser.rb', line 14

def list?
  false
end

#to_rubyObject



23
24
25
# File 'lib/elparser.rb', line 23

def to_ruby
  raise "Not implemented!"
end

#visitObject



20
21
22
# File 'lib/elparser.rb', line 20

def visit
  raise "Not implemented!"
end