Added get_tlv_values, hate it skape?

git-svn-id: file:///home/svn/incoming/trunk@2640 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Spoon M 2005-06-14 04:04:20 +00:00
parent 9e745d219c
commit 8f874a3ac2
1 changed files with 5 additions and 0 deletions

View File

@ -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