Class: Nydp::Nil
- Inherits:
-
Object
- Object
- Nydp::Nil
- Defined in:
- lib/nydp/truth.rb,
lib/nydp/truth.rb
Class Method Summary collapse
Instance Method Summary collapse
- #+(other) ⇒ Object
- #assign(*_) ⇒ Object
- #car ⇒ Object
- #cdr ⇒ Object
- #copy ⇒ Object
- #execute(vm) ⇒ Object
- #inspect ⇒ Object
- #is?(other) ⇒ Boolean
- #isnt?(other) ⇒ Boolean
- #nydp_type ⇒ Object
- #repush(_, contexts) ⇒ Object
- #size ⇒ Object
- #to_s ⇒ Object
Class Method Details
.new ⇒ Object
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 |
#car ⇒ Object
10 |
# File 'lib/nydp/truth.rb', line 10 def car ; self ; end |
#cdr ⇒ Object
11 |
# File 'lib/nydp/truth.rb', line 11 def cdr ; self ; end |
#copy ⇒ Object
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 |
#inspect ⇒ Object
19 |
# File 'lib/nydp/truth.rb', line 19 def inspect ; "nil" ; end |
#is?(other) ⇒ Boolean
13 |
# File 'lib/nydp/truth.rb', line 13 def is? other ; (self.equal? other) ; end |
#isnt?(other) ⇒ Boolean
14 |
# File 'lib/nydp/truth.rb', line 14 def isnt? other ; !is?(other) ; end |
#nydp_type ⇒ Object
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 |
#size ⇒ Object
12 |
# File 'lib/nydp/truth.rb', line 12 def size ; 0 ; end |
#to_s ⇒ Object
15 |
# File 'lib/nydp/truth.rb', line 15 def to_s ; "" ; end |