lib/segment_default.rb in ruby-hl7-1.3.3 vs lib/segment_default.rb in ruby-hl7-1.4.0

- old
+ new

@@ -1,18 +1,20 @@ +# frozen_string_literal: true + # Provide a catch-all information preserving segment # * nb: aliases are not provided BUT you can use the numeric element accessor # # seg = HL7::Message::Segment::Default.new # seg.e0 = "NK1" # seg.e1 = "SOMETHING ELSE" # seg.e2 = "KIN HERE" # class HL7::Message::Segment::Default < HL7::Message::Segment - def initialize(raw_segment="", delims=[]) - segs = [] if (raw_segment == "") + def initialize(raw_segment = "", delims = []) + segs = [] if raw_segment == "" segs ||= raw_segment - super( segs, delims ) + super(segs, delims) end end # load our segments -Dir["#{File.dirname(__FILE__)}/segments/*.rb"].each { |ext| load ext } \ No newline at end of file +Dir["#{File.dirname(__FILE__)}/segments/*.rb"].each {|ext| load ext }