class Coopy::TableModifier
Attributes
t[RW]
Public Class Methods
new(t)
click to toggle source
# File lib/lib/coopy/table_modifier.rb, line 7 def initialize(t) @t = t end
Public Instance Methods
remove_column(at)
click to toggle source
# File lib/lib/coopy/table_modifier.rb, line 17 def remove_column(at) fate = [] begin _g1 = 0 _g = @t.get_width while(_g1 < _g) i = _g1 _g1+=1 if i < at fate.push(i) elsif i > at fate.push(i - 1) else fate.push(-1) end end end @t.insert_or_delete_columns(fate,@t.get_width - 1) end