Chervil is a toy Lisp interpreter written in Ruby
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

env.rb 203B

123456789101112131415
  1. module Chervil
  2. class Env
  3. def initialize(parent = {})
  4. @data = parent
  5. end
  6. def get(name)
  7. @data[name]
  8. end
  9. def set(name, value)
  10. @data[name] = value
  11. end
  12. end
  13. end