Sha256: 298e19379378a2062c5849c4db8e16064ac353ebf235a96c895f0a8078b724ab

Contents?: true

Size: 1.12 KB

Versions: 14

Compression:

Stored size: 1.12 KB

Contents

# Copyright (C) 2014  Kouhei Sutou <kou@cozmixng.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

# NOTE: This class isn't used yet because it breaks the current API.
# TODO: Rename Rabbit::Element::Slide to Rabbit::Element::Page.

module Rabbit
  class Slide
    include Enumerable

    def initialize
      @pages = []
    end

    def <<(page)
      @pages << page
    end

    def size
      @pages.size
    end

    def each(&block)
      @pages.each(&block)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/slide.rb
rabbit-3.0.2 lib/rabbit/slide.rb
rabbit-3.0.1 lib/rabbit/slide.rb
rabbit-3.0.0 lib/rabbit/slide.rb
rabbit-2.2.1 lib/rabbit/slide.rb
rabbit-2.2.0 lib/rabbit/slide.rb
rabbit-2.1.9 lib/rabbit/slide.rb
rabbit-2.1.8 lib/rabbit/slide.rb
rabbit-2.1.7 lib/rabbit/slide.rb
rabbit-2.1.6 lib/rabbit/slide.rb
rabbit-2.1.5 lib/rabbit/slide.rb
rabbit-2.1.4 lib/rabbit/slide.rb
rabbit-2.1.3 lib/rabbit/slide.rb
rabbit-2.1.2 lib/rabbit/slide.rb