Module: HL7

Defined in:
lib/ruby-hl7.rb,
lib/segments/dg1.rb,
lib/segments/ft1.rb,
lib/segments/gt1.rb,
lib/configuration.rb

Overview

:nodoc:

Defined Under Namespace

Modules: MessageBatchParser Classes: Configuration, EmptySegmentNotAllowed, Exception, InvalidDataError, Message, MessageParser, ParseError, RangeError

Class Method Summary collapse

Class Method Details

.configurationObject

Gives access to the current Configuration.



28
29
30
# File 'lib/ruby-hl7.rb', line 28

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Allows easy setting of multiple configuration options. See Configuration for all available options.

Yields:

  • (config)


34
35
36
37
# File 'lib/ruby-hl7.rb', line 34

def self.configure
  config = configuration
  yield(config)
end