Class: AjLisp::DotVerbAtom

Inherits:
NamedAtom show all
Defined in:
lib/ajlisp/dot_verb_atom.rb

Instance Attribute Summary collapse

Attributes inherited from NamedAtom

#name

Instance Method Summary collapse

Methods inherited from NamedAtom

#isEqualTo, #to_s

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

#symbolObject (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