Class: EmptySymbol

Inherits:
Object
  • Object
show all
Defined in:
lib/origami/name.rb

Instance Method Summary collapse

Instance Method Details

#==(sym) ⇒ Object



28
29
30
# File 'lib/origami/name.rb', line 28

def ==(sym)
  sym.is_a?(EmptySymbol)
end

#id2nameObject Also known as: to_s



32
33
34
# File 'lib/origami/name.rb', line 32

def id2name
  ""
end

#inspectObject



45
46
47
# File 'lib/origami/name.rb', line 45

def inspect
  ":"
end

#to_oObject



41
42
43
# File 'lib/origami/name.rb', line 41

def to_o
  Name.new("")
end

#to_symObject



37
38
39
# File 'lib/origami/name.rb', line 37

def to_sym
  self
end