lib/segment.rb in ruby-hl7-1.1.0 vs lib/segment.rb in ruby-hl7-1.1.1
- old
+ new
@@ -3,10 +3,10 @@
# optional validation code that is run when the field is modified
# The segment field data is also accessible via the e<number> method.
#
# == Defining a New Segment
# class HL7::Message::Segment::NK1 < HL7::Message::Segment
-# wieght 100 # segments are sorted ascendingly
+# weight 100 # segments are sorted ascendingly
# add_field :something_you_want # assumes :idx=>1
# add_field :something_else, :idx=>6 # :idx=>6 and field count=6
# add_field :something_more # :idx=>7
# add_field :block_example do |value|
# raise HL7::InvalidDataError.new