Module: WxSugar::EnumerableControl::ClassMethods

Defined in:
lib/wx_sugar/enumerable_controls.rb

Instance Method Summary collapse

Instance Method Details

#collection(name, coll_class) ⇒ Object

Used internally to define a proxy object for items.



14
15
16
# File 'lib/wx_sugar/enumerable_controls.rb', line 14

def collection(name, coll_class)
  define_method(name) { coll_class.new(self) }
end