class Odf::Component::ImageSet

Attributes

images[R]

Public Class Methods

new(*args) click to toggle source
Calls superclass method Odf::Component::Abstract::new
# File lib/odf/component/image_set.rb, line 24
def initialize(*args)
  super
  @images = Set.new
end

Public Instance Methods

<<(path) click to toggle source
# File lib/odf/component/image_set.rb, line 29
def <<(path)
  image = Image.new(path)
  images << image
  image.path
end
each(&block) click to toggle source
# File lib/odf/component/image_set.rb, line 35
def each(&block)
  images.each do |image|
    block.call(image)
  end
end