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