Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/sweet/hacks.rb

Instance Method Summary collapse

Instance Method Details

#conf(opts = {}) ⇒ Object

For configuring layouts



3
4
5
# File 'lib/sweet/hacks.rb', line 3

def conf(opts = {})
  [self, opts]
end

#swt_constObject



6
7
8
# File 'lib/sweet/hacks.rb', line 6

def swt_const
  org.eclipse.swt.SWT.const_get(self.to_s.upcase)
end

#swt_eventObject



9
10
11
# File 'lib/sweet/hacks.rb', line 9

def swt_event
  org.eclipse.swt.SWT.const_get(self.to_s.camelize(:upper))
end