Class: Nydp::Nil

Inherits:
Object show all
Includes:
Enumerable, Singleton
Defined in:
lib/nydp/truth.rb

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object



35
# File 'lib/nydp/truth.rb', line 35

def &        other ; self             ; end

#+(other) ⇒ Object



25
# File 'lib/nydp/truth.rb', line 25

def + other     ; other         ; end

#_nydp_get(a) ⇒ Object



32
# File 'lib/nydp/truth.rb', line 32

def _nydp_get    a ; Nydp::NIL        ; end

#_nydp_set(a, v) ⇒ Object



33
# File 'lib/nydp/truth.rb', line 33

def _nydp_set a, v ; Nydp::NIL        ; end

#assign(*_) ⇒ Object



27
# File 'lib/nydp/truth.rb', line 27

def assign *_   ; self          ; end

#carObject



19
# File 'lib/nydp/truth.rb', line 19

def car         ; self          ; end

#cdrObject



20
# File 'lib/nydp/truth.rb', line 20

def cdr         ; self          ; end

#copyObject



26
# File 'lib/nydp/truth.rb', line 26

def copy        ; self          ; end

#eachObject

nil behaves like an empty list



34
# File 'lib/nydp/truth.rb', line 34

def each           ;                  ; end

#execute(vm) ⇒ Object



31
# File 'lib/nydp/truth.rb', line 31

def execute     vm ; vm.push_arg self ; end

#init_withObject



18
# File 'lib/nydp/truth.rb', line 18

def init_with * ; Nydp::NIL     ; end

#inspectObject



28
# File 'lib/nydp/truth.rb', line 28

def inspect     ; "nil"         ; end

#is?(other) ⇒ Boolean

Returns:

  • (Boolean)


22
# File 'lib/nydp/truth.rb', line 22

def is?   other ; self.equal? other  ; end

#isnt?(other) ⇒ Boolean

Returns:

  • (Boolean)


23
# File 'lib/nydp/truth.rb', line 23

def isnt? other ; !self.equal? other ; end

#nydp_typeObject



29
# File 'lib/nydp/truth.rb', line 29

def nydp_type   ; :nil          ; end

#sizeObject



21
# File 'lib/nydp/truth.rb', line 21

def size        ; 0             ; end

#to_rubyObject



30
# File 'lib/nydp/truth.rb', line 30

def to_ruby     ; nil           ; end

#to_sObject



24
# File 'lib/nydp/truth.rb', line 24

def to_s        ; ""            ; end

#|(other) ⇒ Object



36
# File 'lib/nydp/truth.rb', line 36

def |        other ; other            ; end