Class: Nydp::Nil

Inherits:
Object
  • Object
show all
Defined in:
lib/nydp/truth.rb,
lib/nydp/truth.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject



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

def self.new ; raise "no" ; end

Instance Method Details

#+(other) ⇒ Object



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

def + other     ; other         ; end

#assign(*_) ⇒ Object



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

def assign *_   ; self          ; end

#carObject



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

def car         ; self          ; end

#cdrObject



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

def cdr         ; self          ; end

#copyObject



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

def copy        ; self          ; end

#execute(vm) ⇒ Object



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

def execute vm
  vm.push_arg self
end

#inspectObject



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

def inspect     ; "nil"         ; end

#is?(other) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#isnt?(other) ⇒ Boolean

Returns:

  • (Boolean)


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

def isnt? other ; !is?(other)   ; end

#nydp_typeObject



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

def nydp_type   ; :nil          ; end

#repush(_, contexts) ⇒ Object



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

def repush _, contexts
  contexts.pop
end

#sizeObject



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

def size        ; 0             ; end

#to_sObject



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

def to_s        ; ""            ; end