Skip to content

Instantly share code, notes, and snippets.

@rsinger
Created October 13, 2011 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsinger/1284680 to your computer and use it in GitHub Desktop.
Save rsinger/1284680 to your computer and use it in GitHub Desktop.
# to get the field as a string, without the tag and indicators
# useful in situations where you want a legible version of the field
#
# print record['245'].value
def value(delim='')
return(@subfields.map {|s| s.value}.join(delim))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment