Module: WxSugar::HashLikeItemData
- Includes:
- ItemData
- Defined in:
- lib/wx_sugar/itemdata.rb
Instance Method Summary
collapse
Methods included from ItemData
#get_item_data, #set_item_data, #value_to_ident
Instance Method Details
#data ⇒ Object
64
65
66
|
# File 'lib/wx_sugar/itemdata.rb', line 64
def data()
@data_table ||= Hash.new()
end
|
#delete(the_id) ⇒ Object
68
69
70
71
|
# File 'lib/wx_sugar/itemdata.rb', line 68
def delete(the_id)
data.delete(the_id)
super(the_id)
end
|
#index(the_id) ⇒ Object
73
74
75
76
77
78
|
# File 'lib/wx_sugar/itemdata.rb', line 73
def index(the_id)
data.each do | k, val |
return k if val.id == the_id
end
return nil
end
|