Sha256: 705f4c1a553e8580f62fc95e2fe082e64c71cebab09c097935506f122b7ab96b

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

# Wx::PG::PGProperty
# Copyright (c) M.J.N. Corino, The Netherlands

module Wx::PG

  NullProperty = nil
  PGChoicesEmptyData = nil

  PG_LABEL = Wx::PG::PG_LABEL_STRING

  PG_DEFAULT_IMAGE_SIZE = Wx::DEFAULT_SIZE

  class PGProperty

    wx_each_attribute = instance_method :each_attribute
    define_method :each_attribute do |id|
      if block_given?
        wx_each_attribute.bind(self).call(id)
      else
        ::Enumerator.new { |y| wx_each_attribute.bind(self).call(id) { |variant| y << variant } }
      end
    end
    alias :attributes :each_attribute
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.beta.2-x64-mingw-ucrt-3.2-3.2.2 lib/wx/pg/pg_property.rb
wxruby3-0.9.0.pre.beta.1-x64-mingw-ucrt-3.2 lib/wx/pg/pg_property.rb