Class: Proc

Inherits:
Object
  • Object
show all
Defined in:
lib/profligacy/swing.rb

Instance Method Summary collapse

Instance Method Details

#to_listener(action) ⇒ Object



131
132
133
# File 'lib/profligacy/swing.rb', line 131

def to_listener(action)
  Profligacy::Swing::Listeners.const_get("#{action.to_s.capitalize}ListenerProc").new &self
end

#to_runnableObject



135
136
137
# File 'lib/profligacy/swing.rb', line 135

def to_runnable
  Profligacy::Swing::RunnableProc.new &self
end