Class: Array

Inherits:
Object show all
Defined in:
lib/primitive_wrapper.rb,
lib/primitive_wrapper.rb

Instance Method Summary collapse

Instance Method Details

#empty!Object



126
127
128
129
130
# File 'lib/primitive_wrapper.rb', line 126

def empty!
  old = self.dup
  replace []
  return old
end

#to_xaObject



131
132
133
# File 'lib/primitive_wrapper.rb', line 131

def to_xa
  XArray.new(self)
end

#~Object



73
74
75
# File 'lib/primitive_wrapper.rb', line 73

def ~
  self
end