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



20
21
22
# File 'lib/sweet/hacks.rb', line 20

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

#swt_constObject



23
24
25
# File 'lib/sweet/hacks.rb', line 23

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

#swt_eventObject



26
27
28
# File 'lib/sweet/hacks.rb', line 26

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