Class: Lisp::Port
Instance Attribute Summary
Attributes inherited from Atom
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(p) ⇒ Port
constructor
A new instance of Port.
- #port? ⇒ Boolean
- #to_s ⇒ Object
- #type ⇒ Object
Methods inherited from Atom
#all?, #apply_to, #car, #cdr, #character?, #class?, #copy, #doc, #environment?, #eof_object?, #eq?, #equal?, #eqv?, #evaluate, #false?, #frame?, #function?, #length, #lisp_object?, #list?, #macro?, #negative?, #number?, #object?, #pair?, #positive?, #primitive?, #print_string, #quoted, #set!, #set_location, #special?, #string?, #symbol?, #true?, #vector?, #zero?
Constructor Details
#initialize(p) ⇒ Port
Returns a new instance of Port.
9 10 11 |
# File 'lib/rubylisp/port.rb', line 9 def initialize(p) @value = p end |
Class Method Details
.with_value(p) ⇒ Object
5 6 7 |
# File 'lib/rubylisp/port.rb', line 5 def self.with_value(p) self.new(p) end |