class Lisp::Environment

Public Class Methods

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

Public Instance Methods

environment?() click to toggle source
# File lib/rubylisp/environment.rb, line 13
def environment?
  true
end
equal?(other) click to toggle source
# File lib/rubylisp/environment.rb, line 17
def equal?(other)
  other.environment? && @value == other.value
end
type() click to toggle source
# File lib/rubylisp/environment.rb, line 21
def type
  :environment
end