Class: TkComponent::Builder::EventHandler
- Inherits:
-
Object
- Object
- TkComponent::Builder::EventHandler
- Defined in:
- lib/tk_component/builder/event_handler.rb
Instance Attribute Summary collapse
-
#lambda ⇒ Object
Returns the value of attribute lambda.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, lambda, options = {}) ⇒ EventHandler
constructor
A new instance of EventHandler.
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, = {}) @name = name.to_sym @lambda = lambda @options = end |
Instance Attribute Details
#lambda ⇒ Object
Returns the value of attribute lambda.
5 6 7 |
# File 'lib/tk_component/builder/event_handler.rb', line 5 def lambda @lambda end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/tk_component/builder/event_handler.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/tk_component/builder/event_handler.rb', line 6 def @options end |