class Lisp::Port

Public Class Methods

new(p) click to toggle source
# File lib/rubylisp/port.rb, line 9
def initialize(p)
  @value = p
end
with_value(p) click to toggle source
# File lib/rubylisp/port.rb, line 5
def self.with_value(p)
  self.new(p)
end

Public Instance Methods

port?() click to toggle source
# File lib/rubylisp/port.rb, line 17
def port?
  true
end
to_s() click to toggle source
# File lib/rubylisp/port.rb, line 21
def to_s
  "<port: #{@value}>"
end
type() click to toggle source
# File lib/rubylisp/port.rb, line 13
def type
  :port
end