Method: HTML::Table::ColGroup#unshift

Defined in:
lib/html/colgroup.rb

#unshift(obj) ⇒ Object

This method has been redefined to only allow ColGroup::Col objects to be unshifted onto a ColGroup instance.



86
87
88
89
90
91
92
# File 'lib/html/colgroup.rb', line 86

def unshift(obj)
   unless obj.kind_of?(Table::ColGroup::Col)
      msg = "Can only assign Data and Header objects to Row class"
      raise TypeError, msg
   end
   super
end