Class: Symbol

Inherits:
Object show all
Defined in:
lib/other.rb

Instance Method Summary collapse

Instance Method Details

#to_aObject



62
63
64
# File 'lib/other.rb', line 62

def to_a
  [ self ]
end

#to_orObject



69
70
71
# File 'lib/other.rb', line 69

def to_or
"'"+self.to_orient+"'"
end

#to_orientObject

symbols are masked with “:symbol:”



66
67
68
# File 'lib/other.rb', line 66

def to_orient
  ":"+self.to_s+":"
end