Method: HTML::Table::ColGroup#<<

Defined in:
lib/html/colgroup.rb

#<<(obj) ⇒ Object

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



74
75
76
77
78
79
80
81
# File 'lib/html/colgroup.rb', line 74

def <<(obj)
   unless obj.kind_of?(Table::ColGroup::Col)
      msg = "Can only assign Col objects to ColGroup class"
      msg += ": " + obj.class.to_s
      raise TypeError, msg
   end
   super(obj)
end