Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/sweet/hacks.rb
Instance Method Summary collapse
-
#conf(opts = {}) ⇒ Object
For configuring layouts.
- #swt_const ⇒ Object
- #swt_event ⇒ Object
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_const ⇒ Object
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_event ⇒ Object
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 |