Class: TkComponent::Builder::EventHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/tk_component/builder/event_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, lambda, options = {}) ⇒ EventHandler

Returns a new instance of EventHandler.



8
9
10
11
12
# File 'lib/tk_component/builder/event_handler.rb', line 8

def initialize(name, lambda, options = {})
  @name = name.to_sym
  @lambda = lambda
  @options = options
end

Instance Attribute Details

#lambdaObject

Returns the value of attribute lambda.



5
6
7
# File 'lib/tk_component/builder/event_handler.rb', line 5

def lambda
  @lambda
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/tk_component/builder/event_handler.rb', line 4

def name
  @name
end

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'lib/tk_component/builder/event_handler.rb', line 6

def options
  @options
end