Class: Tgui::ListView::Item
- Inherits:
-
WidgetLike
- Object
- WidgetLike
- Tgui::ListView::Item
- Defined in:
- lib/white_gold/dsl/list_view.rb
Instance Attribute Summary
Attributes inherited from WidgetLike
Instance Method Summary collapse
- #id ⇒ Object (also: #object)
-
#initialize(list_view, object) ⇒ Item
constructor
A new instance of Item.
- #object=(object) ⇒ Object
Methods inherited from WidgetLike
abi_attr, abi_bit_enum, abi_def, abi_enum, #flags=, self_abi_def, self_abi_def_setter, self_abi_def_setter_with_id, self_abi_def_with_id, self_packers_id_extend
Methods included from BangDef
Methods included from BangNest
Methods included from BangNestedCaller
#bang_method_missing, #bang_object_stack, #bang_respond_to?, #self!, #upon!
Constructor Details
#initialize(list_view, object) ⇒ Item
Returns a new instance of Item.
51 52 53 |
# File 'lib/white_gold/dsl/list_view.rb', line 51 def initialize list_view, object super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BangNest
Instance Method Details
#id ⇒ Object Also known as: object
55 56 57 |
# File 'lib/white_gold/dsl/list_view.rb', line 55 def id host.self_object_index @id end |
#object=(object) ⇒ Object
59 60 61 62 |
# File 'lib/white_gold/dsl/list_view.rb', line 59 def object=(object) @list_view.self_change_object @id, object self.id = object end |