lib/adaptive_cards/column_set.rb
# Add a {Column} to this column set
#
# @param column [Column] the column to add to this set
# @raise [InvalidContentError] if an invalid element is added
# @return [ColumnSet] self, to allow method chaining
Add a {Column} to this column set
Add a { Column } to this column set
def add(column)
      if column.is_a?(AdaptiveCards::Column)
        @columns << column
      else
        raise InvalidContentError,
              "#{column.class} is not a column"
      end
      self
    end
def add ( column ) if column . is_a? ( AdaptiveCards :: Column ) @columns << column else raise InvalidContentError , "#{column.class} is not a column" end self end
Add a {Column} to this column set
Add a { Column } to this column set
self, to allow method chaining
self to allow method chaining
ColumnSet
[InvalidContentError] if an invalid element is added
[ InvalidContentError ] if an invalid element is added
column
the column to add to this set
the column to add to this set