Class: GtkApp::SignalSupport::SignalConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk_app/signal_support.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ SignalConnection

Returns a new instance of SignalConnection.



58
59
60
# File 'lib/gtk_app/signal_support.rb', line 58

def initialize(&block)
  instance_eval(&block)
end

Instance Attribute Details

#receiver_blockObject

Returns the value of attribute receiver_block.



56
57
58
# File 'lib/gtk_app/signal_support.rb', line 56

def receiver_block
  @receiver_block
end

#receiver_methodObject

Returns the value of attribute receiver_method.



56
57
58
# File 'lib/gtk_app/signal_support.rb', line 56

def receiver_method
  @receiver_method
end

#signal_nameObject

Returns the value of attribute signal_name.



55
56
57
# File 'lib/gtk_app/signal_support.rb', line 55

def signal_name
  @signal_name
end

#widget_nameObject

Returns the value of attribute widget_name.



55
56
57
# File 'lib/gtk_app/signal_support.rb', line 55

def widget_name
  @widget_name
end

Instance Method Details

#with {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



62
63
64
# File 'lib/gtk_app/signal_support.rb', line 62

def with
  yield(self)
end