class TSparser::ExtendedEventDescriptor::ItemHash
Public Class Methods
new(binary)
click to toggle source
# File lib/definition/descriptor/extended_event_descriptor.rb, line 18 def initialize(binary) @item_map = Hash.new while binary.readable? item = Item.new(binary) @item_map[item.item_description.to_utf_8] = item.item.to_utf_8 end end
Public Instance Methods
[](key)
click to toggle source
# File lib/definition/descriptor/extended_event_descriptor.rb, line 26 def [](key) return @item_map[key] end
to_h()
click to toggle source
# File lib/definition/descriptor/extended_event_descriptor.rb, line 30 def to_h return @item_map.dup end
to_s()
click to toggle source
# File lib/definition/descriptor/extended_event_descriptor.rb, line 34 def to_s return @item_map.to_s end