Class: AjLisp::DotVerbAtom
- Defined in:
- lib/ajlisp/dot_verb_atom.rb
Instance Attribute Summary collapse
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Attributes inherited from NamedAtom
Instance Method Summary collapse
- #evaluate(context) ⇒ Object
-
#initialize(name) ⇒ DotVerbAtom
constructor
A new instance of DotVerbAtom.
Methods inherited from NamedAtom
Constructor Details
#initialize(name) ⇒ DotVerbAtom
Returns a new instance of DotVerbAtom.
7 8 9 10 11 |
# File 'lib/ajlisp/dot_verb_atom.rb', line 7 def initialize(name) super(name) @symbol = name[1,name.length].intern @method = PrimitiveNativeMethod.new @symbol end |
Instance Attribute Details
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
5 6 7 |
# File 'lib/ajlisp/dot_verb_atom.rb', line 5 def symbol @symbol end |
Instance Method Details
#evaluate(context) ⇒ Object
13 14 15 |
# File 'lib/ajlisp/dot_verb_atom.rb', line 13 def evaluate(context) return @method end |