Class: Kiba::Extend::Sources::CSV

Inherits:
Common::Sources::CSV
  • Object
show all
Extended by:
Lookupable, Sourceable
Defined in:
lib/kiba/extend/sources/csv.rb

Overview

Extension of Kiba::Common::Sources::CSV, adding methods that support use as a source in registry entries

Since:

  • 4.0.0

Class Method Summary collapse

Methods included from Lookupable

is_lookupable?, lookup_options_key

Methods included from Sourceable

is_source?

Methods included from Registry::Fileable

#default_args, #default_file_options, #labeled_options, #options_key, #path_key, #requires_path?

Class Method Details

.default_file_optionsObject

Since:

  • 4.0.0



15
16
17
# File 'lib/kiba/extend/sources/csv.rb', line 15

def default_file_options
  Kiba::Extend.csvopts
end

.lookup_options_keyObject

Since:

  • 4.0.0



19
20
21
# File 'lib/kiba/extend/sources/csv.rb', line 19

def lookup_options_key
  :csvopt
end

.options_keyObject

Since:

  • 4.0.0



23
24
25
# File 'lib/kiba/extend/sources/csv.rb', line 23

def options_key
  :csv_options
end

.path_keyObject

Since:

  • 4.0.0



27
28
29
# File 'lib/kiba/extend/sources/csv.rb', line 27

def path_key
  :filename
end

.requires_path?Boolean

Returns:

  • (Boolean)

Since:

  • 4.0.0



31
32
33
# File 'lib/kiba/extend/sources/csv.rb', line 31

def requires_path?
  true
end