Module: BEL::Translator::Plugins::Xbel
- Defined in:
- lib/bel/translator/plugins/xbel.rb,
lib/bel/translator/plugins/xbel/translator.rb,
lib/bel/translator/plugins/xbel/xbel_yielder.rb,
lib/bel/translator/plugins/xbel/nanopub_handler.rb,
lib/bel/translator/plugins/xbel/nanopub_yielder.rb
Defined Under Namespace
Classes: NanopubHandler, NanopubYielder, XBELYielder, XbelTranslator
Constant Summary
collapse
- ID =
:xbel
- NAME =
'XBEL Translator'.freeze
- DESCRIPTION =
'A translator that can read/write BEL nanopubs to XBEL.'.freeze
- MEDIA_TYPES =
%i(application/xml).freeze
- EXTENSIONS =
%i(xml xbel).freeze
Class Method Summary
collapse
Class Method Details
.create_translator(options = {}) ⇒ Object
10
11
12
13
|
# File 'lib/bel/translator/plugins/xbel.rb', line 10
def self.create_translator(options = {})
require_relative 'xbel/translator'
XbelTranslator.new
end
|
.description ⇒ Object
23
24
25
|
# File 'lib/bel/translator/plugins/xbel.rb', line 23
def self.description
DESCRIPTION
end
|
.file_extensions ⇒ Object
31
32
33
|
# File 'lib/bel/translator/plugins/xbel.rb', line 31
def self.file_extensions
EXTENSIONS
end
|
.id ⇒ Object
15
16
17
|
# File 'lib/bel/translator/plugins/xbel.rb', line 15
def self.id
ID
end
|
27
28
29
|
# File 'lib/bel/translator/plugins/xbel.rb', line 27
def self.media_types
MEDIA_TYPES
end
|
.name ⇒ Object
19
20
21
|
# File 'lib/bel/translator/plugins/xbel.rb', line 19
def self.name
NAME
end
|