Sha256: 231ac4aada3961cb337941838795d77437bbea88791a46ebaf96c506b8e58815

Contents?: true

Size: 188 Bytes

Versions: 1

Compression:

Stored size: 188 Bytes

Contents

class Symbol
  def construct_list?
    self == :nil
  end

  def to_array
    construct_list? ? [] : self
  end

  def lisp_eval(environment, forms)
    environment.lookup(self)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forsta-0.0.1 lib/forsta/symbol.rb