Class: Campa::Lisp::Atom
- Inherits:
-
Object
- Object
- Campa::Lisp::Atom
- Defined in:
- lib/campa/lisp/atom.rb
Instance Method Summary collapse
Instance Method Details
#call(expression) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/campa/lisp/atom.rb', line 4 def call(expression) case expression when Symbol, Numeric, TrueClass, FalseClass, String true when List expression == List::EMPTY end end |