class SimpleHL7::Segment
Public Class Methods
current_separator_char(separator_chars)
click to toggle source
# File lib/simple_hl7/segment.rb, line 11 def self.current_separator_char(separator_chars) separator_chars.field end
new(name = nil)
click to toggle source
Calls superclass method
SimpleHL7::Composite::new
# File lib/simple_hl7/segment.rb, line 15 def initialize(name = nil) if name super(name.upcase) else super end end
start_index()
click to toggle source
# File lib/simple_hl7/segment.rb, line 3 def self.start_index 0 end
subcomposite_class()
click to toggle source
# File lib/simple_hl7/segment.rb, line 7 def self.subcomposite_class Field end
Public Instance Methods
name()
click to toggle source
# File lib/simple_hl7/segment.rb, line 23 def name self[0].to_s end
to_a()
click to toggle source
Calls superclass method
SimpleHL7::Composite#to_a
# File lib/simple_hl7/segment.rb, line 27 def to_a super.insert(0, name) end