Module: Rubeus::Extensions::Javax::Swing::JTabbedPane::ClassMethods

Defined in:
lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb

Instance Method Summary collapse

Instance Method Details

#new_with_rubeus(*args, &block) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb', line 15

def new_with_rubeus(*args, &block)
  # Convert to constant value if symbol is designated
  new_args = args.map do |arg|
    if arg.is_a?(Symbol)
      const_get(arg)
    else
      arg
    end
  end

  new_without_rubeus(*new_args, &block)
end