Module: Bioroebe::BaseModule

Included in:
Base, CommandlineApplication
Defined in:
lib/bioroebe/base/base_module/base_module.rb

Overview

Bioroebe::BaseModule

Instance Method Summary collapse

Instance Method Details

#absolute_path(i) ⇒ Object

#

absolute_path

#


40
41
42
# File 'lib/bioroebe/base/base_module/base_module.rb', line 40

def absolute_path(i)
  File.absolute_path(i)
end

#default_file_read(i) ⇒ Object

#

default_file_read

This variant will use File.read().

#


33
34
35
# File 'lib/bioroebe/base/base_module/base_module.rb', line 33

def default_file_read(i)
  File.read(i) if File.exist?(i)
end

#file_readlines(i, encoding_to_use = main_encoding? ) ⇒ Object Also known as: readlines, default_readlines

#

file_readlines

This method is merely a wrapper over File.readlines().

#


20
21
22
23
24
25
# File 'lib/bioroebe/base/base_module/base_module.rb', line 20

def file_readlines(
    i,
    encoding_to_use = main_encoding?
  )
  File.readlines(i, encoding: encoding_to_use)
end