Class: Lisp::EofObject
- Inherits:
-
Atom
show all
- Defined in:
- lib/rubylisp/eof_object.rb
Instance Attribute Summary
Attributes inherited from Atom
#value
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Atom
#all?, #apply_to, #car, #cdr, #character?, #class?, #copy, #doc, #environment?, #eq?, #equal?, #eqv?, #evaluate, #false?, #frame?, #function?, #length, #lisp_object?, #list?, #macro?, #negative?, #number?, #object?, #pair?, #port?, #positive?, #primitive?, #print_string, #quoted, #set!, #set_location, #special?, #string?, #symbol?, #true?, #vector?, #zero?
Constructor Details
Returns a new instance of EofObject.
9
10
|
# File 'lib/rubylisp/eof_object.rb', line 9
def initialize()
end
|
Class Method Details
5
6
7
|
# File 'lib/rubylisp/eof_object.rb', line 5
def self.instance
@instance ||= self.new()
end
|
Instance Method Details
#eof_object? ⇒ Boolean
16
17
18
|
# File 'lib/rubylisp/eof_object.rb', line 16
def eof_object?
true
end
|
20
21
22
|
# File 'lib/rubylisp/eof_object.rb', line 20
def to_s
"<EOF>"
end
|
12
13
14
|
# File 'lib/rubylisp/eof_object.rb', line 12
def type
:eof_object
end
|