Module: Athena
- Extended by:
- Athena
- Included in:
- Athena
- Defined in:
- lib/athena.rb,
lib/athena/cli.rb,
lib/athena/record.rb,
lib/athena/formats.rb,
lib/athena/version.rb
Overview
Defined Under Namespace
Modules: Formats, Version
Classes: CLI, Record
Constant Summary
collapse
- DEFAULT_SEPARATOR =
', '
- DEFAULT_EMPTY =
'<<EMPTY>>'
- VERSION =
Version.to_s
Instance Method Summary
collapse
Instance Method Details
52
53
54
|
# File 'lib/athena.rb', line 52
def input_formats
Formats.formats[:in].sort
end
|
56
57
58
|
# File 'lib/athena.rb', line 56
def output_formats
Formats.formats[:out].sort
end
|
#run(config, spec, format, input, output) ⇒ Object
45
46
47
48
49
50
|
# File 'lib/athena.rb', line 45
def run(config, spec, format, input, output)
Formats[:out, format, output].run(
Formats[:in, spec, build_config(config)],
input
)
end
|
60
61
62
|
# File 'lib/athena.rb', line 60
def valid_format?(direction, format)
Formats.valid_format?(direction, format)
end
|
64
65
66
|
# File 'lib/athena.rb', line 64
def valid_input_format?(format)
valid_format?(:in, format)
end
|
68
69
70
|
# File 'lib/athena.rb', line 68
def valid_output_format?(format)
valid_format?(:out, format)
end
|