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.



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

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

Instance Attribute Details

#receiver_blockObject

Returns the value of attribute receiver_block.



52
53
54
# File 'lib/gtk_app/signal_support.rb', line 52

def receiver_block
  @receiver_block
end

#receiver_methodObject

Returns the value of attribute receiver_method.



52
53
54
# File 'lib/gtk_app/signal_support.rb', line 52

def receiver_method
  @receiver_method
end

#signal_nameObject

Returns the value of attribute signal_name.



51
52
53
# File 'lib/gtk_app/signal_support.rb', line 51

def signal_name
  @signal_name
end

#widget_nameObject

Returns the value of attribute widget_name.



51
52
53
# File 'lib/gtk_app/signal_support.rb', line 51

def widget_name
  @widget_name
end

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



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

def with
  yield(self)
end