Sha256: 66d84036c019ce7efed826ac29ffd4b3fc88fd2275a659edb8a94878e6a7cf22

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# 
# Some parts are
# Copyright 2004-2007, wxRuby development team
# released under the MIT-like wxRuby2 license

# Displays a set of pages in parallel using tabs

module Wx
  class Notebook
    # Convenience method for iterating pages
    def each_page
      if block_given?
        0.upto(get_page_count - 1) do | i |
          yield get_page(i)
        end
      else
        ::Enumerator.new { |y| each_page { |pg| y << pg } }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/core/notebook.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/core/notebook.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/core/notebook.rb