Added get_tlv_values, hate it skape?
git-svn-id: file:///home/svn/incoming/trunk@2640 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
9e745d219c
commit
8f874a3ac2
|
@ -309,6 +309,11 @@ class GroupTlv < Tlv
|
|||
return (tlv != nil) ? tlv.value : nil
|
||||
end
|
||||
|
||||
# Returns an array of values for all tlvs of type type.
|
||||
def get_tlv_values(type)
|
||||
get_tlvs(type).collect { |a| a.value }
|
||||
end
|
||||
|
||||
# Checks to see if the container has a TLV of a given type
|
||||
def has_tlv?(type)
|
||||
return get_tlv(type) != nil
|
||||
|
|
Loading…
Reference in New Issue