Class: Erlang::Nil

Inherits:
Object
  • Object
show all
Defined in:
lib/erlang/nil.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/erlang/nil.rb', line 7

def ==(other)
  if other == []
    true
  else
    other === self.class
  end
end

#inspectObject



3
4
5
# File 'lib/erlang/nil.rb', line 3

def inspect
  "#<#{self.class.name} []>"
end