Method: String#group

Defined in:
lib/dicom/ruby_extensions.rb

#groupString

Returns the group part of the tag string: The first 4 characters.

Returns:

  • (String)

    the group part of the tag



82
83
84
# File 'lib/dicom/ruby_extensions.rb', line 82

def group
  return self[0..3]
end