Sha256: 8b369030552696c54dc9fa2b7e8d14e23e314116eb6a460b0e6ce8eb3d522a9d
Contents?: true
Size: 637 Bytes
Versions: 43
Compression:
Stored size: 637 Bytes
Contents
module Extensions module HL7 module Segments module SFT def self.included base base.send :include, InstanceMethods base.extend ClassMethods end module InstanceMethods def to_hash @hash = {} end end module ClassMethods def index_for(field_name) index = self.fields.collect {|field| field[0]}.index(field_name) rescue -1 if index < 0 return -1 else return index end end end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems