Module: GDV

Defined in:
lib/gdv.rb

Defined Under Namespace

Modules: Format, Model

Class Method Summary collapse

Class Method Details

.format_pathObject


8
9
10
# File 'lib/gdv.rb', line 8

def self.format_path
    File::join(File::dirname(__FILE__), "gdv", "format", "data")
end

.loggerObject

Return a Logger


13
14
15
16
17
18
19
# File 'lib/gdv.rb', line 13

def self.logger
    unless instance_variable_defined?(:@logger)
        # Create a dummy logger
        self.logger = Logger.new(false)
    end
    @logger
end

.logger=(logger) ⇒ Object


21
22
23
24
# File 'lib/gdv.rb', line 21

def self.logger=(logger)
    @logger = logger
    @logger.datetime_format = "%Y-%m-%d %H:%M:%S"
end

.reader(file) ⇒ Object

Return a new GDV::Format::Reader for reading file


27
28
29
# File 'lib/gdv.rb', line 27

def self.reader(file)
    GDV::Format::Reader.new(file)
end

.versionObject


4
5
6
# File 'lib/gdv.rb', line 4

def self.version
    "0.0.1"
end