Method: FastExt::Window#initialize
- Defined in:
- lib/fast_ext/window.rb
#initialize(name, opts = {}, &block) ⇒ Window
:opts => => ‘m_window’, tabs:
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/fast_ext/window.rb', line 17 def initialize(name, opts = {}, &block) self.name = name opts.each_pair do |k,v| self.send "#{k}=", v end self.tabs = self.tabs || [] block.call(self) if block_given? self.wrap_tab self.class.windows[name.to_s] = self end |