Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/profligacy/swing.rb
Instance Method Summary collapse
Instance Method Details
#to_listener(action) ⇒ Object
142 143 144 |
# File 'lib/profligacy/swing.rb', line 142 def to_listener(action) Profligacy::Swing::Listeners.const_get("#{action.to_s.capitalize}ListenerProc").new &self end |
#to_runnable ⇒ Object
146 147 148 |
# File 'lib/profligacy/swing.rb', line 146 def to_runnable Profligacy::Swing::RunnableProc.new &self end |